Merge pull request #12410 from overleaf/bg-fix-restore-deleted-docs-script

fix async call usage of restoreDeletedDoc

GitOrigin-RevId: 693c3d1e2e1d7757815d310eacd148a107b44395
This commit is contained in:
Jakob Ackermann 2023-04-13 11:08:27 +01:00 committed by Copybot
parent 1096c81f4a
commit bc91aebf1c

View file

@ -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)