mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-17 23:53:25 +02:00
Fix devices not being updated correctly because table name was wrong.
This commit is contained in:
@@ -62,7 +62,7 @@ dbapi.saveDevice = function(serial, device) {
|
||||
, createdAt: r.now()
|
||||
, lastHeartbeatAt: r.now()
|
||||
}
|
||||
return db.run(r.table('users').get(serial).update(data))
|
||||
return db.run(r.table('devices').get(serial).update(data))
|
||||
.then(function(stats) {
|
||||
if (stats.skipped) {
|
||||
data.serial = serial
|
||||
|
||||
Reference in New Issue
Block a user