From dc57f759c616a23b1baf10b1ea71cca6ba581831 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Wed, 6 Jul 2022 14:31:50 +0430 Subject: now the blog uses the db for everything. now need to decide on how to populate the DB and prevent duplication --- model.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'model.js') diff --git a/model.js b/model.js index d4bfc83..5df1270 100644 --- a/model.js +++ b/model.js @@ -46,9 +46,9 @@ function populateDB(model) { .toString(); let newBlogPost = new model({ title: fileName, - slug: "slug", + slug: fileName, body: fileContent, - teaser: "teaser", + teaser: fileName, keywords: ["kw1", "kw2"], }); newBlogPost.save(); -- cgit v1.2.3