fix froca update of erased blob

This commit is contained in:
zadam 2023-06-28 21:28:41 +02:00
parent a452e4add5
commit 807b442c7a

View File

@ -21,6 +21,7 @@ async function processEntityChanges(entityChanges) {
} else if (ec.entityName === 'note_reordering') { } else if (ec.entityName === 'note_reordering') {
processNoteReordering(loadResults, ec); processNoteReordering(loadResults, ec);
} else if (ec.entityName === 'blobs') { } else if (ec.entityName === 'blobs') {
if (!ec.isErased) {
for (const affectedNoteId of ec.noteIds) { for (const affectedNoteId of ec.noteIds) {
for (const key of Object.keys(froca.blobPromises)) { for (const key of Object.keys(froca.blobPromises)) {
if (key.includes(affectedNoteId)) { if (key.includes(affectedNoteId)) {
@ -30,6 +31,7 @@ async function processEntityChanges(entityChanges) {
} }
loadResults.addNoteContent(ec.noteIds, ec.componentId); loadResults.addNoteContent(ec.noteIds, ec.componentId);
}
} else if (ec.entityName === 'revisions') { } else if (ec.entityName === 'revisions') {
loadResults.addRevision(ec.entityId, ec.noteId, ec.componentId); loadResults.addRevision(ec.entityId, ec.noteId, ec.componentId);
} else if (ec.entityName === 'options') { } else if (ec.entityName === 'options') {