mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 21:43:52 -05:00
11 lines
432 B
Diff
11 lines
432 B
Diff
|
--- /var/www/sharelatex/web/app/src/Features/Project/ProjectDeleter.js
|
||
|
+++ /var/www/sharelatex/web/app/src/Features/Project/ProjectDeleter.js
|
||
|
@@ -278,6 +278,7 @@ async function deleteProject(projectId, options = {}) {
|
||
|
}
|
||
|
|
||
|
async function undeleteProject(projectId, options = {}) {
|
||
|
+ projectId = ObjectId(projectId)
|
||
|
let deletedProject = await DeletedProject.findOne({
|
||
|
'deleterData.deletedProjectId': projectId
|
||
|
}).exec()
|