provision: call done instead of callback
This commit is contained in:
+2
-2
@@ -186,7 +186,7 @@ function restore(backupConfig, backupId, version, sysinfoConfig, options, auditS
|
||||
|
||||
if (backups.isMountProvider(backupConfig.provider)) {
|
||||
error = mounts.validateMountOptions(backupConfig.provider, backupConfig.mountOptions);
|
||||
if (error) return callback(error);
|
||||
if (error) return done(error);
|
||||
|
||||
const newMount = {
|
||||
name: 'backup',
|
||||
@@ -196,7 +196,7 @@ function restore(backupConfig, backupId, version, sysinfoConfig, options, auditS
|
||||
};
|
||||
|
||||
[error] = await safe(mounts.tryAddMount(newMount, { timeout: 10 })); // 10 seconds
|
||||
if (error) return callback(error);
|
||||
if (error) return done(error);
|
||||
}
|
||||
|
||||
backups.testProviderConfig(backupConfig, function (error) {
|
||||
|
||||
Reference in New Issue
Block a user