diff --git a/lib/roles/device/plugins/account.js b/lib/roles/device/plugins/account.js index d1da07ac..9902ffe3 100644 --- a/lib/roles/device/plugins/account.js +++ b/lib/roles/device/plugins/account.js @@ -15,7 +15,7 @@ module.exports = syrup.serial() var log = logger.createLogger('device:plugins:account') function checkAccount(type, account) { - return service.getAccounts(type) + return service.getAccounts({type: type}) .timeout(30000) .then(function(accounts) { if(accounts.indexOf(account) >= 0) {