addons is optional in manifest

This commit is contained in:
Girish Ramakrishnan
2017-03-26 21:55:31 -07:00
parent 32f94a03ce
commit 77df520b07

View File

@@ -43,7 +43,7 @@ function sync(callback) {
debug('sync: checking apps %j', allAppIds);
async.eachSeries(allApps, function (app, iteratorDone) {
var appState = gState[app.id] || null;
var schedulerConfig = app.manifest.addons.scheduler || null;
var schedulerConfig = app.manifest.addons ? app.manifest.addons.scheduler : null;
if (!appState && !schedulerConfig) return iteratorDone(); // nothing changed