Fix Prisma raw query syntax in getEventStats

This commit is contained in:
Ayush3603 2025-11-10 18:54:38 +05:30
parent fa54d0b2b8
commit 8c7700c76a

View file

@ -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,