mirror of
https://github.com/openstf/stf
synced 2025-10-04 18:29:17 +02:00
Fix devices not being updated correctly because table name was wrong.
This commit is contained in:
parent
dc076c6b15
commit
d43d427dcb
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ dbapi.saveDevice = function(serial, device) {
|
||||||
, createdAt: r.now()
|
, createdAt: r.now()
|
||||||
, lastHeartbeatAt: 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) {
|
.then(function(stats) {
|
||||||
if (stats.skipped) {
|
if (stats.skipped) {
|
||||||
data.serial = serial
|
data.serial = serial
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue