Skip to content

Commit

Permalink
Merge pull request #42740 from nextcloud/throttle-restore-26
Browse files Browse the repository at this point in the history
[26] actually throttle restore
  • Loading branch information
blizzz authored Jan 15, 2024
2 parents af00330 + ff2a2c4 commit 85422f1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/files_trashbin/src/filelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ import PQueue from 'p-queue'
this.fileMultiSelectMenu.toggleLoading('restore', true)
var restorePromises = files.map(function(file) {
return self.deleteOperationQueue.add(async () => {
self.client.move(OC.joinPaths('trash', self.getCurrentDirectory(), file), OC.joinPaths('restore', file), true)
await self.client.move(OC.joinPaths('trash', self.getCurrentDirectory(), file), OC.joinPaths('restore', file), true)
self._removeCallback([file])
})
})
Expand Down
Loading

0 comments on commit 85422f1

Please sign in to comment.