models: Fixed wrong database mapping for comment id.
This commit is contained in:
+1
-1
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user