From 9ea6e01f47a4351461850310d65840306d5f65c9 Mon Sep 17 00:00:00 2001 From: sairajzero Date: Wed, 26 Jul 2023 03:34:22 +0530 Subject: [PATCH] bug fix --- src/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client.js b/src/client.js index 0a447d5..21f5dbb 100644 --- a/src/client.js +++ b/src/client.js @@ -114,7 +114,7 @@ function processEditFromUser(data) { .map(d => tmp_data[d]).join("|"); if (!floCrypto.verifySign(hashcontent, data.re_sign, data.pubKey)) return reject(INVALID("Invalid re-signature")); - let comment_edit = ([null].includes(data.edit) ? null : data.note.toString()); //if value is null, then comment will be removed (ie, NULL value in SQL) + let comment_edit = ([null].includes(data.edit) ? null : data.edit.toString()); //if value is null, then comment will be removed (ie, NULL value in SQL) DB.editData(closeNode, data.vectorClock, comment_edit, data.re_sign).then(rb => { DB.getData(closeNode, data.vectorClock) .then(result => resolve([result[0], 'EDIT', rb]))