From 0dda4daa7ce0a46ebbfcff8f44a998fe0eb81d2f Mon Sep 17 00:00:00 2001 From: ak Date: Sat, 30 Sep 2023 13:14:27 -0700 Subject: [PATCH] blogpost POST controller gets published status --- controllers/post.js | 1 + 1 file changed, 1 insertion(+) diff --git a/controllers/post.js b/controllers/post.js index 00ab1b9..55076b6 100644 --- a/controllers/post.js +++ b/controllers/post.js @@ -81,6 +81,7 @@ exports.post = [ date: new Date(), text: req.body.text, author: username, + published: req.body.published, _id: new mongoose.Types.ObjectId(), });