Skip to content

Commit cfe60f6

Browse files
committed
actually throttle restore
Signed-off-by: Robin Appelman <[email protected]>
1 parent 518919d commit cfe60f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/files_trashbin/src/filelist.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ import PQueue from 'p-queue'
193193
this.fileMultiSelectMenu.toggleLoading('restore', true)
194194
var restorePromises = files.map(function(file) {
195195
return self.deleteOperationQueue.add(async () => {
196-
self.client.move(OC.joinPaths('trash', self.getCurrentDirectory(), file), OC.joinPaths('restore', file), true)
196+
await self.client.move(OC.joinPaths('trash', self.getCurrentDirectory(), file), OC.joinPaths('restore', file), true)
197197
self._removeCallback([file])
198198
})
199199
})

0 commit comments

Comments
 (0)