mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-13 21:53:43 +01:00
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:
@@ -8,7 +8,6 @@ import path from 'path'
|
||||
import _ from 'lodash'
|
||||
import parseArgs from 'minimist'
|
||||
import OError from '@overleaf/o-error'
|
||||
import { waitForDb } from '../app/src/infrastructure/mongodb.js'
|
||||
import { User } from '../app/src/models/User.js'
|
||||
import ProjectCreationHandler from '../app/src/Features/Project/ProjectCreationHandler.js'
|
||||
import ProjectEntityUpdateHandler from '../app/src/Features/Project/ProjectEntityUpdateHandler.js'
|
||||
@@ -207,7 +206,6 @@ async function _applyRandomDocUpdate(ownerId, projectId) {
|
||||
}
|
||||
|
||||
async function createProject() {
|
||||
await waitForDb()
|
||||
const user = await User.findById(userId)
|
||||
console.log('Will create project')
|
||||
console.log('user_id:', userId, '=>', user.email)
|
||||
|
||||
Reference in New Issue
Block a user