mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:53:23 +02:00
dbapi.saveDeviceStatus() was using a removed method.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user