Skip to content

Commit

Permalink
Migrate queries to PG syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
tedspare committed Feb 11, 2025
1 parent 11478ea commit 7a7b809
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/components/dashboard/Metrics/Charts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ export async function UsageCharts({
INNER JOIN "Run" R ON L."runId" = R.id
INNER JOIN "Project" P ON R."projectId" = P.id
WHERE
L."createdAt" >= CURDATE() - INTERVAL 14 DAY
AND L."createdAt" < CURDATE() + INTERVAL 1 DAY
L."createdAt" >= CURRENT_DATE - INTERVAL '14 days'
AND L."createdAt" < CURRENT_DATE + INTERVAL '1 day'
AND P."teamId" = ${team?.id}
GROUP BY
"usageDay"
Expand Down

1 comment on commit 7a7b809

@vercel
Copy link

@vercel vercel bot commented on 7a7b809 Feb 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.