mirror of
https://github.com/eliasstepanik/filesystem-livesync.git
synced 2026-01-11 13:38:30 +00:00
Fixed:
- the issue of chunks being contaminated with invalid UTF-8 JSON. - the issue of plain text file saving.
This commit is contained in:
parent
6c2eb73c29
commit
a2c5f3b3f1
@ -95,7 +95,7 @@ async function putDBEntry(note: LoadedEntry, passphrase: string, saveAsBigChunk:
|
|||||||
let plainSplit = false;
|
let plainSplit = false;
|
||||||
let cacheUsed = 0;
|
let cacheUsed = 0;
|
||||||
const userpasswordHash = h32Raw(new TextEncoder().encode(passphrase));
|
const userpasswordHash = h32Raw(new TextEncoder().encode(passphrase));
|
||||||
if (saveAsBigChunk && shouldSplitAsPlainText(note._id)) {
|
if (!saveAsBigChunk && shouldSplitAsPlainText(note._id)) {
|
||||||
pieceSize = MAX_DOC_SIZE;
|
pieceSize = MAX_DOC_SIZE;
|
||||||
plainSplit = true;
|
plainSplit = true;
|
||||||
}
|
}
|
||||||
|
|||||||
2
src/lib
2
src/lib
@ -1 +1 @@
|
|||||||
Subproject commit a49a096a6a6d93185bb0a590b3e84e6d7c5431d0
|
Subproject commit 85bb3556ba90c054d0245ece5bf02bbe51f762a2
|
||||||
Loading…
x
Reference in New Issue
Block a user