mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:03:30 +02:00
Make group timeout configurable.
This commit is contained in:
@@ -8,9 +8,11 @@ module.exports = function GroupServiceFactory(
|
||||
groupService.invite = function (device) {
|
||||
var tx = TransactionService.create(device)
|
||||
socket.emit('group.invite', device.channel, tx.channel, {
|
||||
serial: {
|
||||
value: device.serial
|
||||
, match: 'exact'
|
||||
requirements: {
|
||||
serial: {
|
||||
value: device.serial
|
||||
, match: 'exact'
|
||||
}
|
||||
}
|
||||
})
|
||||
return tx.promise.then(function(result) {
|
||||
@@ -24,9 +26,11 @@ module.exports = function GroupServiceFactory(
|
||||
groupService.kick = function (device) {
|
||||
var tx = TransactionService.create(device)
|
||||
socket.emit('group.kick', device.channel, tx.channel, {
|
||||
serial: {
|
||||
value: device.serial
|
||||
, match: 'exact'
|
||||
requirements: {
|
||||
serial: {
|
||||
value: device.serial
|
||||
, match: 'exact'
|
||||
}
|
||||
}
|
||||
})
|
||||
return tx.promise.then(function(result) {
|
||||
|
||||
Reference in New Issue
Block a user