Fixed #121 : Ticket busy will now reset on reboot

This commit is contained in:
DJj123dj
2025-01-25 11:47:50 +01:00
parent 0437af1507
commit 04789d5426
2 changed files with 10 additions and 1 deletions
+2 -1
View File
@@ -23,7 +23,8 @@ export interface ODCodeManagerIds_Default {
"openticket:autoclose-timeout":ODCode,
"openticket:autoclose-leave":ODCode,
"openticket:autodelete-timeout":ODCode,
"openticket:autodelete-leave":ODCode
"openticket:autodelete-leave":ODCode,
"openticket:ticket-anti-busy":ODCode,
}
/**## ODCodeManager_Default `default_class`
+8
View File
@@ -483,4 +483,12 @@ const loadAutoCode = () => {
}
})
}))
//TICKET ANTI BUSY
openticket.code.add(new api.ODCode("openticket:ticket-anti-busy",-1,() => {
for (const ticket of openticket.tickets.getAll()){
//free tickets from corruption due to openticket:busy variable
ticket.get("openticket:busy").value = false
}
}))
}