From f7f9acd4c33015c823f7617fc544987a6dd83cf7 Mon Sep 17 00:00:00 2001 From: Luka Skukan Date: Thu, 17 Nov 2016 13:39:22 +0100 Subject: [PATCH] Update code to be compliant with new async dep changes in node sdk 1.0 --- lib/helpers/get-form-view-model.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/helpers/get-form-view-model.js b/lib/helpers/get-form-view-model.js index b0771ae5..a81bc167 100644 --- a/lib/helpers/get-form-view-model.js +++ b/lib/helpers/get-form-view-model.js @@ -124,8 +124,8 @@ function getAccountStores(application, callback) { // Iterate over all account stores, and filter out the ones that // don't have a provider (Organizations dont have providers) accountStoreMappings.filter(function (accountStoreMapping, next) { - next(!!accountStoreMapping.accountStore.provider); - }, function (accountStoreMappings) { + next(null, !!accountStoreMapping.accountStore.provider); + }, function (err, accountStoreMappings) { if (err) { return callback(err); }