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 11:02:11 +01:00 committed by Copybot
parent 04865b1285
commit 577a8a3ee2

View file

@ -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')