include id in newly-created post

This commit is contained in:
Daniel Lugo 2020-06-16 18:31:17 -04:00
parent 0e5477619f
commit a16ec9d4ae

View file

@ -1323,7 +1323,8 @@ const createPost = async (tags, title, content) => {
/** @type {Common.Schema.Post} */
const completePost = {
...loadedPost,
author: userForPost
author: userForPost,
id: postID
}
if (!Common.Schema.isPost(completePost)) {