Skip to content

Commit 85422f1

Browse files
authored
Merge pull request #42740 from nextcloud/throttle-restore-26
[26] actually throttle restore
2 parents af00330 + ff2a2c4 commit 85422f1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
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)