mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:03:30 +02:00
Save initialPackages in DB instead of memory
This commit is contained in:
@@ -176,6 +176,12 @@ dbapi.setDeviceOwner = function(serial, owner) {
|
||||
}))
|
||||
}
|
||||
|
||||
dbapi.saveDeviceInitialPackages = function(serial, packages) {
|
||||
return db.run(r.table('devices').get(serial).update({
|
||||
initialPackages: packages
|
||||
}))
|
||||
}
|
||||
|
||||
dbapi.unsetDeviceOwner = function(serial) {
|
||||
return db.run(r.table('devices').get(serial).update({
|
||||
owner: null
|
||||
|
||||
Reference in New Issue
Block a user