fix(git-sync): use DocumentUpdaterHandler.promises.flushProjectToMongo
Build and Deploy Verso / deploy (push) Successful in 11m42s

The default export is callbackified; the async version lives under .promises.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
claude
2026-06-24 12:55:12 +00:00
parent 31971664ba
commit 7cc21f0fd6
@@ -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.