fix(git-sync): use DocumentUpdaterHandler.promises.flushProjectToMongo
Build and Deploy Verso / deploy (push) Successful in 11m42s
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user