save content items correctly
This commit is contained in:
parent
c438d3293f
commit
eecfe34156
1 changed files with 2 additions and 1 deletions
|
|
@ -1303,11 +1303,12 @@ const createPost = async (tags, title, content) => {
|
|||
}
|
||||
|
||||
const post = page.get(postID)
|
||||
const contentItems = post.get(Key.CONTENT_ITEMS)
|
||||
|
||||
await Promise.all(
|
||||
content.map(ci => {
|
||||
// @ts-ignore
|
||||
return Utils.promisifyGunNode(post).set(ci)
|
||||
return Utils.promisifyGunNode(contentItems).set(ci)
|
||||
})
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue