From 1eefa655276d6955d157bd0450da1604a9966bdb Mon Sep 17 00:00:00 2001 From: Gisle Aune Date: Wed, 16 Jan 2019 21:41:36 +0100 Subject: [PATCH] models: Fixed wrong database mapping for comment id. --- models/comment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"`