mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
increment lastProcessedEntityChangeId correctly
This commit is contained in:
parent
bc8b6284a6
commit
7d64f6a7dd
@ -181,9 +181,9 @@ async function consumeFrontendUpdateData() {
|
||||
|
||||
for (const entityChange of nonProcessedEntityChanges) {
|
||||
processedEntityChangeIds.add(entityChange.id);
|
||||
}
|
||||
|
||||
lastProcessedEntityChangeId = Math.max(lastProcessedEntityChangeId, allEntityChanges[allEntityChanges.length - 1].id);
|
||||
lastProcessedEntityChangeId = Math.max(lastProcessedEntityChangeId, entityChange.id);
|
||||
}
|
||||
}
|
||||
|
||||
checkEntityChangeIdListeners();
|
||||
|
Loading…
x
Reference in New Issue
Block a user