From 1096e9ca9aed728b4a17e039744f5414dc7a5352 Mon Sep 17 00:00:00 2001 From: tommy141x Date: Tue, 5 Nov 2024 13:32:22 -0500 Subject: [PATCH] Fix number casting issue --- src/server/model/monitor/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/model/monitor/index.ts b/src/server/model/monitor/index.ts index 5211827..834ed34 100644 --- a/src/server/model/monitor/index.ts +++ b/src/server/model/monitor/index.ts @@ -90,7 +90,7 @@ export async function getMonitorSummaryWithDay( "MonitorData" WHERE "monitorId" = ${monitorId} AND - "createdAt" >= CURRENT_DATE - INTERVAL '${beforeDay} days' + "createdAt" >= CURRENT_DATE - INTERVAL '1 day' * ${beforeDay} GROUP BY DATE("createdAt") ORDER BY