mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
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:
parent
1096c81f4a
commit
bc91aebf1c
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue