diff --git a/src/queries/sql/events/getEventStats.ts b/src/queries/sql/events/getEventStats.ts index 9537fcb25..8542fa88b 100644 --- a/src/queries/sql/events/getEventStats.ts +++ b/src/queries/sql/events/getEventStats.ts @@ -51,6 +51,7 @@ export async function getEventStats( // Extract timezone from filters to ensure consistent timezone usage const { timezone = 'utc' } = filters; + // Fix the Prisma raw query syntax return prisma.$queryRaw` select count(*) as count,