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) {
|
||||
return dbapi.ensureDeviceSaved(serial)
|
||||
.then(function() {
|
||||
return db.run(r.table('devices').get(serial).update({
|
||||
status: status
|
||||
, statusChangedAt: r.now()
|
||||
}))
|
||||
})
|
||||
return db.run(r.table('devices').get(serial).update({
|
||||
status: status
|
||||
, statusChangedAt: r.now()
|
||||
}))
|
||||
}
|
||||
|
||||
dbapi.setDeviceOwner = function(serial, owner) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue