mirror of
https://codeberg.org/timelimit/timelimit-server.git
synced 2026-08-31 19:03:45 +02:00
Extend device status action for q or later
This commit is contained in:
@@ -140,6 +140,14 @@ export async function dispatchUpdateDeviceStatus ({ deviceId, action, cache }: {
|
||||
deviceEntry.didReboot = true
|
||||
}
|
||||
|
||||
if (action.isQOrLaterNow) {
|
||||
const hasChanged = deviceEntry.isQorLater === false
|
||||
|
||||
if (hasChanged) {
|
||||
deviceEntry.isQorLater = true
|
||||
}
|
||||
}
|
||||
|
||||
await deviceEntry.save({ transaction: cache.transaction })
|
||||
|
||||
if (hasDeviceManipulation(deviceEntry)) {
|
||||
|
||||
Reference in New Issue
Block a user