diff --git a/models/comment.go b/models/comment.go index bd003c2..3d2e472 100644 --- a/models/comment.go +++ b/models/comment.go @@ -4,7 +4,7 @@ import "time" // A Comment is a comment on a chapter. type Comment struct { - ID string `bson:"id"` + ID string `bson:"_id"` ChapterID string `bson:"chapterId"` Subject string `bson:"subject"` Author string `bson:"author"`