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"
WHERE
"monitorId" = ${monitorId} AND
"createdAt" >= CURRENT_DATE - INTERVAL '${beforeDay} days'
"createdAt" >= CURRENT_DATE - INTERVAL '1 day' * ${beforeDay}
GROUP BY
DATE("createdAt")
ORDER BY