fix(don): use midnight anchor rather than last 24 hours
Build and Push Image / build-backend (push) Successful in 2m36s
Build and Push Image / build-frontend (push) Successful in 3m53s
Build and Push Image / push (push) Successful in 1m7s

This commit is contained in:
2026-07-24 13:38:22 +07:00 Unverified
parent 6f12599354
commit 2e99065eda
+1 -1
View File
@@ -25,7 +25,7 @@ export default async function () {
today: sql<number>`
COALESCE(
SUM(${donations.amount}) FILTER (
WHERE ${donations.created} >= NOW() - INTERVAL '24 hours'
WHERE ${donations.created} >= date_trunc('day', NOW())
),
0
)