mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 04:53:19 +02:00
Reverse port forwarding UI actually works now.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user