diff --git a/services/web/app/src/Features/GitSync/GitSyncHandler.mjs b/services/web/app/src/Features/GitSync/GitSyncHandler.mjs index f660508a06..fe0178cae3 100644 --- a/services/web/app/src/Features/GitSync/GitSyncHandler.mjs +++ b/services/web/app/src/Features/GitSync/GitSyncHandler.mjs @@ -168,7 +168,7 @@ async function pushToRemote( // Flush in-memory document edits to MongoDB before reading, so getAllDocs returns current content. // Without this, edits made in the editor may not yet be persisted and would be silently skipped. if (pushFiles) { - await DocumentUpdaterHandler.flushProjectToMongo(projectId) + await DocumentUpdaterHandler.promises.flushProjectToMongo(projectId) } // Use a persistent repo so git's delta mechanism works across pushes.