blogpost POST controller gets published status
This commit is contained in:
parent
73ca135cc3
commit
0dda4daa7c
1 changed files with 1 additions and 0 deletions
|
|
@ -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(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue