mirror of
https://github.com/openstf/stf
synced 2025-10-04 02:09:32 +02:00
1. Although it's a bit repetitive, I think the independent serial parameter tells the reader that entry contains serial. 2. Just remove useless parameter "url".
This commit is contained in:
parent
c0d7adbc52
commit
aad71a80d1
1 changed files with 2 additions and 2 deletions
|
@ -129,7 +129,7 @@ dbapi.loadUserDevices = function(email) {
|
|||
|
||||
dbapi.saveDeviceLog = function(serial, entry) {
|
||||
return db.run(r.table('logs').insert({
|
||||
serial: entry.serial
|
||||
serial: serial
|
||||
, timestamp: r.epochTime(entry.timestamp)
|
||||
, priority: entry.priority
|
||||
, tag: entry.tag
|
||||
|
@ -173,7 +173,7 @@ dbapi.setDeviceConnectUrl = function(serial, url) {
|
|||
}))
|
||||
}
|
||||
|
||||
dbapi.unsetDeviceConnectUrl = function(serial, url) {
|
||||
dbapi.unsetDeviceConnectUrl = function(serial) {
|
||||
return db.run(r.table('devices').get(serial).update({
|
||||
remoteConnectUrl: null
|
||||
, remoteConnect: false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue