models: Fixed wrong database mapping for comment id.

This commit is contained in:
2019-01-16 21:41:36 +01:00
parent f9b6af58c9
commit 1eefa65527
+1 -1
View File
@@ -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"`