diff --git a/services/gunDB/contact-api/actions.js b/services/gunDB/contact-api/actions.js index cfdd96fa..ab7d6955 100644 --- a/services/gunDB/contact-api/actions.js +++ b/services/gunDB/contact-api/actions.js @@ -1301,14 +1301,21 @@ const createPost = async (tags, title, content) => { .get(Key.WALL) .get(Key.PAGES) .get(pageIdx) - .get(Key.COUNT) - .put(shouldBeNewPage ? 1 : count + 1, ack => { - if (ack.err) { - throw new Error(ack.err) - } + .put( + { + [Key.COUNT]: shouldBeNewPage ? 1 : count + 1, + posts: { + unused: null + } + }, + ack => { + if (ack.err) { + throw new Error(ack.err) + } - res() - }) + res() + } + ) }) /** @type {string} */