mirror of
https://github.com/eliasstepanik/filesystem-livesync.git
synced 2026-01-11 13:38:30 +00:00
Fixed:
- Note had been corrupted when the passphrase was empty.
This commit is contained in:
parent
b2ce4593b9
commit
24b3b7d8b1
@ -169,7 +169,7 @@ async function putDBEntry(note: LoadedEntry, passphrase: string, database: Pouch
|
|||||||
leafid = "h:" + hashedPiece;
|
leafid = "h:" + hashedPiece;
|
||||||
|
|
||||||
//have to make
|
//have to make
|
||||||
const savePiece = await encrypt(piece, passphrase);
|
const savePiece = passphrase != "" ? await encrypt(piece, passphrase) : piece;
|
||||||
|
|
||||||
const d: EntryLeaf = {
|
const d: EntryLeaf = {
|
||||||
_id: leafid,
|
_id: leafid,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user