mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Merge pull request #3257 from overleaf/jpa-mongoose-latest
[misc] upgrade mongoose to the latest version GitOrigin-RevId: cc612312e1661a92907dd8d42a32aeccb8cdb62d
This commit is contained in:
committed by
Copybot
parent
e01f9109c6
commit
dba5127856
@@ -182,7 +182,7 @@ const ProjectEntityUpdateHandler = {
|
||||
return callback(err)
|
||||
}
|
||||
if (ProjectEntityUpdateHandler.isPathValidForRootDoc(docPath)) {
|
||||
Project.update(
|
||||
Project.updateOne(
|
||||
{ _id: projectId },
|
||||
{ rootDoc_id: newRootDocID },
|
||||
{},
|
||||
@@ -201,7 +201,7 @@ const ProjectEntityUpdateHandler = {
|
||||
|
||||
unsetRootDoc(projectId, callback) {
|
||||
logger.log({ projectId }, 'removing root doc')
|
||||
Project.update(
|
||||
Project.updateOne(
|
||||
{ _id: projectId },
|
||||
{ $unset: { rootDoc_id: true } },
|
||||
{},
|
||||
|
||||
Reference in New Issue
Block a user