Merge pull request #11791 from overleaf/msm-track-changes-flush-fix

[track-changes] add `waitForDb` to `scripts/flush_all.js`

GitOrigin-RevId: 318c0b4334bd70dddb3b5fe585e70c51d54af491
This commit is contained in:
Miguel Serrano
2023-02-13 10:06:35 +00:00
committed by Copybot
parent 8de7f2ba18
commit 95e21566a3
@@ -1,6 +1,8 @@
const UpdatesManager = require('../app/js/UpdatesManager')
const { waitForDb } = require('../app/js/mongodb')
async function main() {
await waitForDb()
return new Promise((resolve, reject) => {
const limit = -1
console.log('Flushing all updates')