feat(admin): analytics redis cache, shared ops health, ticket queue clarity
CI / check (push) Successful in 29s
Deploy / release (push) Skipped
Deploy / deploy (push) Successful in 1m25s
CI / deploy (push) Failing after 10s

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
SimoandCursor committed 2026-07-30 19:57:00 +02:00
1 parent 474de0717b
commit 58fae1f90f
38 files changed
+348 -245

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
import "server-only";
import { prisma } from "@/lib/prisma";
/** Open-queue sizes for dual ticket products (CMS desk vs help-center). */
export async function fetchTicketQueueOpenCounts(): Promise<{
cmsOpen: number;
helpOpen: number;
}> {
const [cmsOpen, helpOpen] = await Promise.all([
prisma.websiteTicket
.count({ where: { status: { not: "closed" } } })
.catch(() => 0),
prisma.websiteHelpCenterTickets
.count({ where: { open: true } })
.catch(() => 0),
]);
return { cmsOpen, helpOpen };
}