fix: ticket closing

This commit is contained in:
Isaac
2023-01-30 15:56:41 +00:00
parent a60c998605
commit d1c3620fcd
15 changed files with 213 additions and 100 deletions

View File

@@ -140,6 +140,8 @@ module.exports.patch = fastify => ({
where: { id: categoryId },
});
// update caches
await client.tickets.getCategory(categoryId, true);
await updateStaffRoles(guild);
logAdminEvent(client, {

View File

@@ -94,6 +94,8 @@ module.exports.post = fastify => ({
},
});
// update caches
await client.tickets.getCategory(category.id, true);
await updateStaffRoles(guild);
logAdminEvent(client, {