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
+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
}
}))
}