refactor: rename updater functions to have box in them

This commit is contained in:
Girish Ramakrishnan
2025-06-20 19:04:55 +02:00
parent d7fdfd6d71
commit 2db99e7807
6 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -250,7 +250,7 @@ async function handleAutoupdatePatternChanged(pattern) {
// do box before app updates. for the off chance that the box logic fixes some app update logic issue
if (updateInfo.box && !updateInfo.box.unstable) {
debug('Starting box autoupdate to %j', updateInfo.box.version);
const [error] = await safe(updater.updateToLatest({ skipBackup: false }, AuditSource.CRON));
const [error] = await safe(updater.startBoxUpdateTask({ skipBackup: false }, AuditSource.CRON));
if (!error) return; // do not start app updates when a box update got scheduled
debug(`Failed to start box autoupdate task: ${error.message}`);
// fall through to update apps if box update never started (failed ubuntu or avx check)