Fixed stats not displaying with SQLite plugin
Lot's of stats were hidden in the embed when using the ot-sqlite-database plugin. This was caused by a recent API breaking-change that made everything async. The problem wasn't related to the plugin itself, but the Open Ticket api. Updating the plugin is not required.
This commit is contained in:
@@ -22,8 +22,8 @@ export const registerActions = async () => {
|
||||
ticket.get("openticket:busy").value = true
|
||||
|
||||
//update stats
|
||||
openticket.stats.get("openticket:global").setStat("openticket:tickets-claimed",1,"increase")
|
||||
openticket.stats.get("openticket:user").setStat("openticket:tickets-claimed",user.id,1,"increase")
|
||||
await openticket.stats.get("openticket:global").setStat("openticket:tickets-claimed",1,"increase")
|
||||
await openticket.stats.get("openticket:user").setStat("openticket:tickets-claimed",user.id,1,"increase")
|
||||
|
||||
//update category
|
||||
const rawClaimCategory = ticket.option.get("openticket:channel-categories-claimed").value.find((c) => c.user == user.id)
|
||||
|
||||
Reference in New Issue
Block a user