remount does not need a backend hook

This commit is contained in:
Girish Ramakrishnan
2023-08-15 08:51:25 +05:30
parent d0fca9eeb9
commit e6b85c2df7
6 changed files with 3 additions and 42 deletions

View File

@@ -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() {