mirror of
https://github.com/openstf/stf
synced 2025-10-04 10:19:30 +02:00
Reverse port forwarding UI actually works now.
This commit is contained in:
parent
99864fb223
commit
cecf08a244
10 changed files with 158 additions and 134 deletions
|
@ -130,6 +130,7 @@ dbapi.saveDevice = function(serial, device) {
|
|||
, statusChangedAt: r.now()
|
||||
, createdAt: r.now()
|
||||
, lastHeartbeatAt: r.now()
|
||||
, reverseForwards: []
|
||||
}
|
||||
return db.run(r.table('devices').get(serial).update(data))
|
||||
.then(function(stats) {
|
||||
|
@ -230,6 +231,12 @@ dbapi.setDeviceRotation = function(serial, rotation) {
|
|||
}))
|
||||
}
|
||||
|
||||
dbapi.setDeviceReverseForwards = function(serial, forwards) {
|
||||
return db.run(r.table('devices').get(serial).update({
|
||||
reverseForwards: forwards
|
||||
}))
|
||||
}
|
||||
|
||||
dbapi.setDeviceChannel = function(serial, channel) {
|
||||
return db.run(r.table('devices').get(serial).update({
|
||||
channel: channel
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue