save content items correctly

This commit is contained in:
Daniel Lugo 2020-06-24 07:18:54 -04:00
parent c438d3293f
commit eecfe34156

View file

@ -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)
})
)