mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-31 04:41:32 +02:00
Merge pull request #3348 from overleaf/revert-3298-jpa-re-land-mongoose-latest
Revert "[misc] re-land: remove mongojs and bump mongoose" GitOrigin-RevId: 45a284435c88898d96769ab258651fb8d6d20ff5
This commit is contained in:
@@ -182,7 +182,7 @@ const ProjectEntityUpdateHandler = {
|
||||
return callback(err)
|
||||
}
|
||||
if (ProjectEntityUpdateHandler.isPathValidForRootDoc(docPath)) {
|
||||
Project.updateOne(
|
||||
Project.update(
|
||||
{ _id: projectId },
|
||||
{ rootDoc_id: newRootDocID },
|
||||
{},
|
||||
@@ -201,7 +201,7 @@ const ProjectEntityUpdateHandler = {
|
||||
|
||||
unsetRootDoc(projectId, callback) {
|
||||
logger.log({ projectId }, 'removing root doc')
|
||||
Project.updateOne(
|
||||
Project.update(
|
||||
{ _id: projectId },
|
||||
{ $unset: { rootDoc_id: true } },
|
||||
{},
|
||||
|
||||
Reference in New Issue
Block a user