Fix app auto-update breakage

This commit is contained in:
Girish Ramakrishnan
2021-01-31 20:46:55 -08:00
parent e2c342f242
commit fc408b8288
3 changed files with 6 additions and 7 deletions
+4 -3
View File
@@ -198,9 +198,10 @@ function autoupdatePatternChanged(pattern, tz) {
return;
}
if (updateInfo.apps && Object.keys(updateInfo.apps).length > 0) {
debug('Starting app update to %j', updateInfo.apps);
apps.autoupdateApps(updateInfo.apps, auditSource.CRON, NOOP_CALLBACK);
const appUpdateInfo = _.omit(updateInfo, 'box');
if (Object.keys(appUpdateInfo).length > 0) {
debug('Starting app update to %j', appUpdateInfo);
apps.autoupdateApps(appUpdateInfo, auditSource.CRON, NOOP_CALLBACK);
} else {
debug('No app auto updates available');
}