Fix number casting issue

This commit is contained in:
tommy141x 2024-11-05 13:32:22 -05:00 committed by moonrailgun
parent b71bf6542e
commit 1096e9ca9a

View File

@ -90,7 +90,7 @@ export async function getMonitorSummaryWithDay(
"MonitorData" "MonitorData"
WHERE WHERE
"monitorId" = ${monitorId} AND "monitorId" = ${monitorId} AND
"createdAt" >= CURRENT_DATE - INTERVAL '${beforeDay} days' "createdAt" >= CURRENT_DATE - INTERVAL '1 day' * ${beforeDay}
GROUP BY GROUP BY
DATE("createdAt") DATE("createdAt")
ORDER BY ORDER BY