From a8c8610ca2a6b75c07b68a8e829ff7dc51e59445 Mon Sep 17 00:00:00 2001 From: Gisle Aune Date: Thu, 17 Jan 2019 21:19:13 +0100 Subject: [PATCH] models: Fixed wrong database mapping for comment source. --- models/comment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/comment.go b/models/comment.go index 3d2e472..f1ccd31 100644 --- a/models/comment.go +++ b/models/comment.go @@ -13,5 +13,5 @@ type Comment struct { FictionalDate time.Time `bson:"fictionalDate"` CreatedDate time.Time `bson:"createdDate"` EditedDate time.Time `bson:"editeddDate"` - Source string `bson:"sources"` + Source string `bson:"source"` }