settings: move backup settings
This commit is contained in:
@@ -1208,7 +1208,7 @@ async function scheduleTask(appId, installationState, taskId, auditSource) {
|
||||
assert.strictEqual(typeof taskId, 'string');
|
||||
assert.strictEqual(typeof auditSource, 'object');
|
||||
|
||||
const backupConfig = await settings.getBackupConfig();
|
||||
const backupConfig = await backups.getConfig();
|
||||
|
||||
let memoryLimit = 400;
|
||||
if (installationState === exports.ISTATE_PENDING_BACKUP || installationState === exports.ISTATE_PENDING_CLONE || installationState === exports.ISTATE_PENDING_RESTORE
|
||||
@@ -2678,7 +2678,7 @@ async function getBackupDownloadStream(app, backupId) {
|
||||
if (backup.identifier !== app.id) throw new BoxError(BoxError.NOT_FOUND, 'Backup not found'); // some other app's backup
|
||||
if (backup.format !== 'tgz') throw new BoxError(BoxError.BAD_STATE, 'only tgz backups can be downloaded');
|
||||
|
||||
const backupConfig = await settings.getBackupConfig();
|
||||
const backupConfig = await backups.getConfig();
|
||||
|
||||
const ps = new PassThrough();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user