mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 02:53:27 +02:00
A bit of refactoring and new functionality for removeAccount method.
This commit is contained in:
@@ -14,12 +14,12 @@ module.exports = syrup.serial()
|
||||
.define(function(options, service, identity, touch, router, push, adb) {
|
||||
var log = logger.createLogger('device:plugins:account')
|
||||
|
||||
router.on(wire.AccountRemoveMessage, function(channel) {
|
||||
router.on(wire.AccountRemoveMessage, function(channel, message) {
|
||||
var reply = wireutil.reply(options.serial)
|
||||
|
||||
log.info('Removing current Google account(s)')
|
||||
log.info('Removing "%s" account(s)', message.type)
|
||||
|
||||
service.removeAccount()
|
||||
service.removeAccount(message)
|
||||
.timeout(30000)
|
||||
.then(function() {
|
||||
push.send([
|
||||
|
||||
Reference in New Issue
Block a user