mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
Merge pull request #3255 from overleaf/jpa-fix-scripts
[misc] add waitForDb wrapper to scripts with indirect mongo access GitOrigin-RevId: 009331f91a45f075a35b0b6e90c4352e55908c21
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
const readline = require('readline')
|
||||
const { waitForDb } = require('../app/src/infrastructure/mongodb')
|
||||
const ProjectEntityHandler = require('../app/src/Features/Project/ProjectEntityHandler')
|
||||
const ProjectGetter = require('../app/src/Features/Project/ProjectGetter')
|
||||
const Errors = require('../app/src/Features/Errors/Errors')
|
||||
@@ -37,7 +38,8 @@ async function countFiles() {
|
||||
}
|
||||
}
|
||||
|
||||
countFiles()
|
||||
waitForDb()
|
||||
.then(countFiles)
|
||||
.then(() => {
|
||||
process.exit(0)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user