From 19fef4c337953018a9d76eb3a1602efb59e5eb51 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Thu, 23 Jul 2015 07:20:57 +0200 Subject: [PATCH] Add missing appId key to access app updateInfo --- src/apps.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apps.js b/src/apps.js index 396996578..7356a2596 100644 --- a/src/apps.js +++ b/src/apps.js @@ -660,11 +660,11 @@ function autoupdateApps(updateInfo, callback) { // updateInfo is { appId -> { ma async.eachSeries(Object.keys(updateInfo), function iterator(appId, iteratorDone) { get(appId, function (error, app) { - if (!canAutoupdateApp(app, updateInfo.manifest)) { + if (!canAutoupdateApp(app, updateInfo[appId].manifest)) { return iteratorDone(); } - update(appId, updateInfo.manifest, app.portBindings, null /* icon */, function (error) { + update(appId, updateInfo[appId].manifest, app.portBindings, null /* icon */, function (error) { if (error) debug('Error initiating autoupdate of %s', appId); iteratorDone(null);