apptask: use primary target during update

This commit is contained in:
Girish Ramakrishnan
2025-07-25 14:32:22 +02:00
parent a0792aa469
commit d81fa897ad
+2 -1
View File
@@ -565,8 +565,9 @@ async function updateCommand(app, args, progressCallback) {
if (!updateConfig.skipBackup) {
await progressCallback({ percent: 15, message: 'Backing up app' });
const backupTarget = await backupTargets.getPrimary();
// preserve update backups for 3 weeks
const [error] = await safe(backuptask.backupApp(app, { preserveSecs: 3*7*24*60*60 }, (progress) => {
const [error] = await safe(backuptask.backupApp(app, backupTarget, { preserveSecs: 3*7*24*60*60 }, (progress) => {
progressCallback({ percent: 15, message: `Backup - ${progress.message}` });
}));
if (error) {