Merge pull request #21427 from overleaf/jpa-populate-db-on-import
[web] populate db with collections on import, ahead of waitForDb() call GitOrigin-RevId: 7eb4cd61c2052187acd9947d7060f54d9822d314
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import readline from 'readline'
|
||||
import { waitForDb } from '../app/src/infrastructure/mongodb.js'
|
||||
import ProjectEntityHandler from '../app/src/Features/Project/ProjectEntityHandler.js'
|
||||
import ProjectGetter from '../app/src/Features/Project/ProjectGetter.js'
|
||||
import Errors from '../app/src/Features/Errors/Errors.js'
|
||||
@@ -35,7 +34,6 @@ async function countFiles() {
|
||||
}
|
||||
|
||||
try {
|
||||
await waitForDb()
|
||||
await countFiles()
|
||||
process.exit(0)
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user