Skip to content

Commit 1096e9c

Browse files
tommy141xmoonrailgun
authored andcommitted
Fix number casting issue
1 parent b71bf65 commit 1096e9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/model/monitor/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export async function getMonitorSummaryWithDay(
9090
"MonitorData"
9191
WHERE
9292
"monitorId" = ${monitorId} AND
93-
"createdAt" >= CURRENT_DATE - INTERVAL '${beforeDay} days'
93+
"createdAt" >= CURRENT_DATE - INTERVAL '1 day' * ${beforeDay}
9494
GROUP BY
9595
DATE("createdAt")
9696
ORDER BY

0 commit comments

Comments
 (0)