canAutoupdateApp now returns bool

This commit is contained in:
Girish Ramakrishnan
2019-12-08 16:55:56 -08:00
parent 9ad6025310
commit 837fc27e94

View File

@@ -1775,9 +1775,8 @@ function autoupdateApps(updateInfo, auditSource, callback) { // updateInfo is {
return iteratorDone();
}
error = canAutoupdateApp(app, updateInfo[appId].manifest);
if (error) {
debug('app %s requires manual update. %s', appId, error.message);
if (!canAutoupdateApp(app, updateInfo[appId].manifest)) {
debug(`app ${app.fqdn} requires manual update`);
return iteratorDone();
}