From bc91aebf1c8661e2dffb547cdd44bdb16200153c Mon Sep 17 00:00:00 2001 From: Jakob Ackermann Date: Thu, 13 Apr 2023 11:08:27 +0100 Subject: [PATCH] Merge pull request #12410 from overleaf/bg-fix-restore-deleted-docs-script fix async call usage of restoreDeletedDoc GitOrigin-RevId: 693c3d1e2e1d7757815d310eacd148a107b44395 --- services/web/scripts/restore_soft_deleted_docs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/web/scripts/restore_soft_deleted_docs.js b/services/web/scripts/restore_soft_deleted_docs.js index 07c19837d1..5ab31f3bef 100644 --- a/services/web/scripts/restore_soft_deleted_docs.js +++ b/services/web/scripts/restore_soft_deleted_docs.js @@ -15,10 +15,10 @@ async function main() { FILE_NAMES_TO_RESTORE.includes(doc.name) ) for (const deletedDoc of docsToRestore) { - const newDoc = await ProjectEntityRestoreHandler.restoreDeletedDoc( + const newDoc = await ProjectEntityRestoreHandler.promises.restoreDeletedDoc( PROJECT_ID, deletedDoc._id, - deletedDoc.id, + deletedDoc.name, DEVELOPER_USER_ID ) console.log(newDoc)