From a16ec9d4ae9e2d1b99af402239978e8298017fc8 Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Tue, 16 Jun 2020 18:31:17 -0400 Subject: [PATCH] include id in newly-created post --- 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 dd38efb2..3afa662c 100644 --- a/services/gunDB/contact-api/actions.js +++ b/services/gunDB/contact-api/actions.js @@ -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)) {