From be35684ba2ae62ca214882fb926ea42f0dd28b5d Mon Sep 17 00:00:00 2001 From: Ly Tuan Kiet Date: Tue, 17 Dec 2024 05:50:01 +0700 Subject: [PATCH] fix: ensure requestSync is set correctly in DocumentSchema - Added a line to set payload.requestSync to true within the DocumentSchema class, ensuring that synchronization requests are properly flagged for processing. - This change reinforces the handling of sync operations, aligning with previous optimizations made to the background synchronization process. --- src/Document/document.schema.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Document/document.schema.ts b/src/Document/document.schema.ts index f6f568e..f7a1e65 100644 --- a/src/Document/document.schema.ts +++ b/src/Document/document.schema.ts @@ -774,9 +774,9 @@ export class DocumentSchema extends PothosSchema { // payload.pageIndex, // ctx // ); + payload.requestSync = true; } - payload.requestSync = true; // biome-ignore lint/suspicious/noExplicitAny: error is any } catch (error: any) { Logger.error("Background sync check failed", {