From 68fff1c6300c820c6b896b99c602f28147d34b64 Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 8 Mar 2020 19:41:14 +0530 Subject: [PATCH] Tags field in posts mongoose model added and position corrected --- back-end/src/models/Blog.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/back-end/src/models/Blog.js b/back-end/src/models/Blog.js index 4dcba8f..9b92161 100644 --- a/back-end/src/models/Blog.js +++ b/back-end/src/models/Blog.js @@ -19,9 +19,6 @@ const BlogSchema = new Schema({ type: Date, default: Date.now }, - tags: [{ - type: String - }], likes: [ { type: mongoose.Schema.Types.ObjectId, @@ -34,6 +31,9 @@ const BlogSchema = new Schema({ ref: "Comment" } ], + tags: [{ + type: String + }], source: [{ type: String }]