blogpost POST controller gets published status

This commit is contained in:
ak 2023-09-30 13:14:27 -07:00
parent 73ca135cc3
commit 0dda4daa7c

View file

@ -81,6 +81,7 @@ exports.post = [
date: new Date(), date: new Date(),
text: req.body.text, text: req.body.text,
author: username, author: username,
published: req.body.published,
_id: new mongoose.Types.ObjectId(), _id: new mongoose.Types.ObjectId(),
}); });