This commit is contained in:
sairajzero 2023-07-26 03:34:22 +05:30
parent 0ef054ef4f
commit 9ea6e01f47

View File

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