From eecfe341566faa57856fcd4235c74e49d0606911 Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Wed, 24 Jun 2020 07:18:54 -0400 Subject: [PATCH] save content items correctly --- services/gunDB/contact-api/actions.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/gunDB/contact-api/actions.js b/services/gunDB/contact-api/actions.js index 87c5bddf..f83a8616 100644 --- a/services/gunDB/contact-api/actions.js +++ b/services/gunDB/contact-api/actions.js @@ -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) }) )