Merge pull request #11869 from overleaf/em-upgrade-mongoose-web

Upgrade Mongoose and the Mongo driver in web

GitOrigin-RevId: 2cad1aabe57eae424a9e4c68b2e0062f0e78ffaf
This commit is contained in:
Eric Mc Sween
2023-03-01 09:03:27 +00:00
committed by Copybot
parent 076bc9b39c
commit 65976cb363
43 changed files with 660 additions and 474 deletions
+2 -2
View File
@@ -54,8 +54,8 @@ async function updateImage(image, projectIds) {
{ _id: { $in: projectIds.map(ObjectId) } },
{ $set: { imageName: `quay.io/sharelatex/${image}` } }
).exec()
console.log(`Found ${res.n} out of ${projectIds.length} projects`)
console.log(`Modified ${res.nModified} projects`)
console.log(`Found ${res.matchedCount} out of ${projectIds.length} projects`)
console.log(`Modified ${res.modifiedCount} projects`)
}
main()