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)