mirror of
https://codeberg.org/timelimit/timelimit-server.git
synced 2026-08-31 19:03:45 +02:00
Save manipulation details
This commit is contained in:
@@ -70,6 +70,16 @@ export async function dispatchIgnoreManipulation ({ action, cache }: {
|
||||
deviceEntry.hadManipulation = false
|
||||
}
|
||||
|
||||
if (action.ignoreHadManipulationFlags !== 0) {
|
||||
const newFlags = deviceEntry.hadManipulationFlags & (~action.ignoreHadManipulationFlags)
|
||||
|
||||
deviceEntry.hadManipulationFlags = newFlags
|
||||
|
||||
if (newFlags === 0) {
|
||||
deviceEntry.hadManipulation = false
|
||||
}
|
||||
}
|
||||
|
||||
await deviceEntry.save({ transaction: cache.transaction })
|
||||
cache.invalidiateDeviceList = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user