rename backupTargets to backupSites

This commit is contained in:
Girish Ramakrishnan
2025-09-12 09:48:37 +02:00
parent f8015c156e
commit c5b7264f1a
38 changed files with 751 additions and 751 deletions
+3 -3
View File
@@ -13,7 +13,7 @@ const archives = require('../archives.js'),
safe = require('safetydance');
describe('Archives', function () {
const { setup, cleanup, auditSource, getDefaultBackupTarget } = common;
const { setup, cleanup, auditSource, getDefaultBackupSite } = common;
const appBackup = {
id: null,
@@ -28,12 +28,12 @@ describe('Archives', function () {
preserveSecs: 0,
label: '',
appConfig: { loc: 'loc1' },
targetId: null
siteId: null
};
before(async function () {
await setup();
appBackup.targetId = (await getDefaultBackupTarget()).id;
appBackup.siteId = (await getDefaultBackupSite()).id;
appBackup.id = await backups.add(appBackup);
});
after(cleanup);