1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 02:29:26 +02:00

Separate device logs

This commit is contained in:
Lukasz.Zeglinski 2019-09-11 11:04:49 +02:00
parent 345ba4d8a8
commit d99a6e7a97
29 changed files with 17057 additions and 64 deletions

View file

@ -154,6 +154,7 @@ dbapi.saveDeviceInitialState = function(serial, device) {
, remoteConnect: false
, remoteConnectUrl: null
, usage: null
, logs_enabled: false
}
return db.run(r.table('devices').get(serial).update(data))
.then(function(stats) {
@ -224,6 +225,7 @@ dbapi.unsetDeviceUsage = function(serial) {
return db.run(r.table('devices').get(serial).update({
usage: null
, usageChangedAt: r.now()
, logs_enabled: false
}))
}