mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-17 23:53:25 +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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user