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