From 0e8d6e00f68c733c77dfc1f82677dfcfada994cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Ta=C3=AFeb?= Date: Fri, 27 Dec 2024 18:12:40 +0100 Subject: [PATCH] fix: fix build --- src/lib/prisma/prisma-analytics-queries.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/prisma/prisma-analytics-queries.ts b/src/lib/prisma/prisma-analytics-queries.ts index ef93429e..9234c836 100644 --- a/src/lib/prisma/prisma-analytics-queries.ts +++ b/src/lib/prisma/prisma-analytics-queries.ts @@ -21,7 +21,11 @@ type GetNorthStarStatsProps = { dateFrom: Date; range: DateRange; }; +type NorthStarQueryRecord = { + periode: Date | null; + score: bigint | null; +}; -export const getNorthStarStats = async (params: GetNorthStarStatsProps) => { +export const getNorthStarStats = async (params: GetNorthStarStatsProps): Promise => { return prismaClient.$queryRawTyped(northStarStatQuery(params.dateFrom, params.range)); };