feat(xo-server/listVmBackups): use backup.listingDebounce setting (#4972)

This commit is contained in:
Julien Fontanet 2020-05-05 14:23:22 +02:00 committed by GitHub
parent 4aa87f3fa5
commit b8eeee1d5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -934,9 +934,15 @@ export default class BackupNg {
)()
}
@decorateWith(debounceWithKey, 10e3, function keyFn(remoteId) {
return [this, remoteId]
})
@decorateWith(
debounceWithKey,
function() {
return parseDuration(this._backupOptions.listingDebounce)
},
function keyFn(remoteId) {
return [this, remoteId]
}
)
async _listVmBackupsOnRemote(remoteId: string) {
const app = this._app
const backupsByVm = {}