mirror of
https://github.com/openstf/stf
synced 2025-10-04 10:19:30 +02:00
Add owners to groups.
This commit is contained in:
parent
3e7d91cb91
commit
37303c5d92
8 changed files with 98 additions and 70 deletions
|
@ -45,9 +45,11 @@ module.exports = function(options) {
|
|||
appDealer.send([channel, data])
|
||||
})
|
||||
.on(wire.JoinGroupMessage, function(channel, message, data) {
|
||||
dbapi.setDeviceOwner(message.serial, message.owner)
|
||||
appDealer.send([channel, data])
|
||||
})
|
||||
.on(wire.LeaveGroupMessage, function(channel, message, data) {
|
||||
dbapi.unsetDeviceOwner(message.serial, message.owner)
|
||||
appDealer.send([channel, data])
|
||||
})
|
||||
.on(wire.DeviceLogMessage, function(channel, message, data) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue