Browse Source

models: Fixed wrong database mapping for comment id.

module-madness-pointers
Gisle Aune 6 years ago
parent
commit
1eefa65527
  1. 2
      models/comment.go

2
models/comment.go

@ -4,7 +4,7 @@ import "time"
// A Comment is a comment on a chapter. // A Comment is a comment on a chapter.
type Comment struct { type Comment struct {
ID string `bson:"id"`
ID string `bson:"_id"`
ChapterID string `bson:"chapterId"` ChapterID string `bson:"chapterId"`
Subject string `bson:"subject"` Subject string `bson:"subject"`
Author string `bson:"author"` Author string `bson:"author"`

Loading…
Cancel
Save