mirror of
https://github.com/openstf/stf
synced 2025-10-04 18:29:17 +02:00
dbapi.saveDeviceStatus() was using a removed method.
This commit is contained in:
parent
0a28757f62
commit
753d839112
1 changed files with 4 additions and 7 deletions
|
@ -57,13 +57,10 @@ dbapi.saveDevice = function(serial, device) {
|
||||||
}
|
}
|
||||||
|
|
||||||
dbapi.saveDeviceStatus = function(serial, status) {
|
dbapi.saveDeviceStatus = function(serial, status) {
|
||||||
return dbapi.ensureDeviceSaved(serial)
|
return db.run(r.table('devices').get(serial).update({
|
||||||
.then(function() {
|
status: status
|
||||||
return db.run(r.table('devices').get(serial).update({
|
, statusChangedAt: r.now()
|
||||||
status: status
|
}))
|
||||||
, statusChangedAt: r.now()
|
|
||||||
}))
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dbapi.setDeviceOwner = function(serial, owner) {
|
dbapi.setDeviceOwner = function(serial, owner) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue