delete note through its entity instead of manually with SQL, closes #303

This commit is contained in:
azivner
2019-01-13 00:24:51 +01:00
parent 348562352c
commit b115a7cf19
5 changed files with 27 additions and 20 deletions

View File

@@ -26,11 +26,8 @@ function pad(data) {
data = Buffer.concat([data, Buffer.from(zeros)]);
}
else {
data = Buffer.from(data);
}
return data;
return Buffer.from(data);
}
function encrypt(key, plainText, ivLength = 13) {