mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 21:36:05 +01:00
fixes
This commit is contained in:
@@ -37,7 +37,7 @@ function isProtectedSessionAvailable() {
|
||||
function decryptNotes(notes) {
|
||||
for (const note of notes) {
|
||||
if (note.isProtected) {
|
||||
note.title = decrypt(note.title);
|
||||
note.title = decrypt(note.title).toString();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -47,7 +47,7 @@ function encrypt(plainText) {
|
||||
}
|
||||
|
||||
function decrypt(cipherText) {
|
||||
return dataEncryptionService.encrypt(getDataKey(), cipherText);
|
||||
return dataEncryptionService.decrypt(getDataKey(), cipherText);
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
||||
Reference in New Issue
Block a user