This commit is contained in:
Andras Schmelczer 2025-11-27 22:21:44 +00:00
parent b0b5da7d37
commit 67c912ae4c

View file

@ -75,9 +75,9 @@ export class Database {
Math.max(0, lastSeenUpdateId ?? 0) // the first updateId will be 1 which is the first integer after -1 Math.max(0, lastSeenUpdateId ?? 0) // the first updateId will be 1 which is the first integer after -1
); );
this.documents.forEach((doc) => this.documents.forEach((doc) => {
this.lastSeenUpdateIds.add(doc.metadata?.parentVersionId) this.lastSeenUpdateIds.add(doc.metadata?.parentVersionId);
); });
this.hasInitialSyncCompleted = this.hasInitialSyncCompleted =
initialState.hasInitialSyncCompleted ?? false; initialState.hasInitialSyncCompleted ?? false;