(API) Implemented opendiscord:reopened in database

This commit is contained in:
DJj123dj
2025-08-28 11:25:18 +02:00
parent 706006e319
commit 02d37dd177
2 changed files with 14 additions and 4 deletions
+7 -2
View File
@@ -17,10 +17,15 @@ export const registerActions = async () => {
//update ticket
ticket.get("opendiscord:closed").value = true
if (source == "autoclose") ticket.get("opendiscord:autoclosed").value = true
ticket.get("opendiscord:open").value = false
ticket.get("opendiscord:closed-by").value = user.id
ticket.get("opendiscord:closed-on").value = new Date().getTime()
ticket.get("opendiscord:reopened").value = false
ticket.get("opendiscord:reopened-by").value = null
ticket.get("opendiscord:reopened-on").value = null
if (source == "autoclose") ticket.get("opendiscord:autoclosed").value = true
ticket.get("opendiscord:open").value = false
ticket.get("opendiscord:busy").value = true
//update stats