fix(api): guild not global ticket count

This commit is contained in:
Isaac 2025-02-13 04:43:00 +00:00
parent f140b76a92
commit 53df394a48
No known key found for this signature in database
GPG Key ID: 0DE40AE37BBA5C33

View File

@ -57,7 +57,7 @@ module.exports.get = fastify => ({
where: { guildId: id }, where: { guildId: id },
}), }),
client.prisma.tag.count({ where: { guildId: id } }), client.prisma.tag.count({ where: { guildId: id } }),
client.prisma.ticket.count(), client.prisma.ticket.count({ where: { guildId: id } }),
client.prisma.ticket.findMany({ client.prisma.ticket.findMany({
select: { select: {
closedAt: true, closedAt: true,