diff --git a/src/addons.js b/src/addons.js index 6bdd98bde..26ecb1291 100644 --- a/src/addons.js +++ b/src/addons.js @@ -1723,10 +1723,10 @@ function startRedis(existingInfra, callback) { const tag = infra.images.redis.tag; const upgrading = existingInfra.version !== 'none' && requiresUpgrade(existingInfra.images.redis.tag, tag); - appdb.getAll(function (error, apps) { + apps.getAll(function (error, allApps) { if (error) return callback(error); - async.eachSeries(apps, function iterator (app, iteratorCallback) { + async.eachSeries(allApps, function iterator (app, iteratorCallback) { if (!('redis' in app.manifest.addons)) return iteratorCallback(); // app doesn't use the addon setupRedis(app, app.manifest.addons.redis, iteratorCallback);