mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
Merge pull request #15477 from overleaf/csh-td-issue-11625-mongo-ug-5-document-updater
Upgrade mongodb module for document updater from 4.11.0 to 6.2.0 GitOrigin-RevId: 4154763ded77e04cd3f4002824fee4af8b7f8e8a
This commit is contained in:
committed by
Copybot
parent
1da44a1e7c
commit
f5089f596c
@@ -19,7 +19,7 @@ async function removeDeletedDocs(dockeys, options) {
|
||||
const docIds = ProjectFlusher._extractIds(dockeys)
|
||||
for (const docId of docIds) {
|
||||
summary.totalDocs++
|
||||
const docCount = await db.docs.find({ _id: ObjectId(docId) }).count()
|
||||
const docCount = await db.docs.find({ _id: new ObjectId(docId) }).count()
|
||||
if (!docCount) {
|
||||
try {
|
||||
await removeDeletedDoc(docId, options)
|
||||
@@ -44,7 +44,7 @@ async function removeDeletedDoc(docId, options) {
|
||||
lastUpdatedBy,
|
||||
] = await getDoc(projectId, docId)
|
||||
|
||||
const project = await db.projects.findOne({ _id: ObjectId(projectId) })
|
||||
const project = await db.projects.findOne({ _id: new ObjectId(projectId) })
|
||||
|
||||
let status
|
||||
|
||||
|
||||
Reference in New Issue
Block a user