mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 02:53:27 +02:00
Without parameters get all the accounts of any type. Error returned fixed.
This commit is contained in:
@@ -48,9 +48,9 @@ module.exports = syrup.serial()
|
||||
router.on(wire.AccountGetMessage, function(channel, message) {
|
||||
var reply = wireutil.reply(options.serial)
|
||||
|
||||
log.info('Getting account(s) of type "%s"', message.type)
|
||||
log.info('Getting account(s)')
|
||||
|
||||
service.getAccounts(message.type)
|
||||
service.getAccounts(message)
|
||||
.timeout(30000)
|
||||
.then(function(accounts) {
|
||||
push.send([
|
||||
|
||||
@@ -490,10 +490,10 @@ module.exports = syrup.serial()
|
||||
})
|
||||
}
|
||||
|
||||
plugin.getAccounts = function(type) {
|
||||
plugin.getAccounts = function(data) {
|
||||
return runServiceCommand(
|
||||
apk.wire.MessageType.GET_ACCOUNTS
|
||||
, new apk.wire.GetAccountsRequest(type)
|
||||
, new apk.wire.GetAccountsRequest({type: data.type})
|
||||
)
|
||||
.timeout(15000)
|
||||
.then(function(data) {
|
||||
|
||||
Reference in New Issue
Block a user