remount does not need a backend hook
This commit is contained in:
@@ -362,10 +362,9 @@ async function remount(auditSource) {
|
||||
|
||||
const backupConfig = await getConfig();
|
||||
|
||||
const func = storage.api(backupConfig.provider);
|
||||
if (!func) throw new BoxError(BoxError.BAD_FIELD, 'unknown storage provider');
|
||||
|
||||
await storage.api(backupConfig.provider).remount(backupConfig);
|
||||
if (mounts.isManagedProvider(backupConfig.provider)) {
|
||||
await mounts.remount(mounts.mountObjectFromBackupConfig(backupConfig));
|
||||
}
|
||||
}
|
||||
|
||||
async function getMountStatus() {
|
||||
|
||||
Reference in New Issue
Block a user