actually throttle restore

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2024-01-12 16:57:21 +01:00
parent 8cd8a07c79
commit c8be52bc16
No known key found for this signature in database
GPG key ID: 42B69D8A64526EFB

View file

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