diff --git a/src/Document/document.schema.ts b/src/Document/document.schema.ts index 0bed9eb..f6f568e 100644 --- a/src/Document/document.schema.ts +++ b/src/Document/document.schema.ts @@ -750,7 +750,7 @@ export class DocumentSchema extends PothosSchema { } // Only perform background check with a very low probability - const SYNC_PROBABILITY = 0.01; // 0.1% chance + const SYNC_PROBABILITY = 0.001; // 0.1% chance const SYNC_INTERVAL_MS = 15000; // 15 seconds minimum between syncs const syncKey = `document:sync:${payload.documentId}:${payload.pageIndex}`; @@ -775,6 +775,8 @@ export class DocumentSchema extends PothosSchema { // ctx // ); } + + payload.requestSync = true; // biome-ignore lint/suspicious/noExplicitAny: error is any } catch (error: any) { Logger.error("Background sync check failed", {