include id in newly-created post
This commit is contained in:
parent
0e5477619f
commit
a16ec9d4ae
1 changed files with 2 additions and 1 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue