Skip to content

Commit

Permalink
fix(web): event days
Browse files Browse the repository at this point in the history
  • Loading branch information
cstrnt committed Sep 3, 2024
1 parent f3e229a commit 53e816e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion apps/web/prisma/sql/getEventsByTestIdForAllTime.sql
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ WHERE
AND TYPE = ?))
AND DATE(NOW()))
GROUP BY
DATE(createdAt), selectedVariant
DATE(createdAt), selectedVariant
ORDER BY createdAt ASC;
3 changes: 2 additions & 1 deletion apps/web/prisma/sql/getEventsByTestIdForDay.sql
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ WHERE
AND DATE(createdAt) = DATE(?)
GROUP BY
HOUR(createdAt),
selectedVariant
selectedVariant
ORDER BY createdAt ASC;
5 changes: 3 additions & 2 deletions apps/web/prisma/sql/getEventsByTestIdForLast30Days.sql
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ FROM
WHERE
testId = ?
AND TYPE = ?
AND DATE(NOW()) - INTERVAL 1 MONTH
AND createdAt >= DATE_SUB(CURDATE(), INTERVAL 30 DAY)
GROUP BY
DATE(createdAt),
selectedVariant
selectedVariant
ORDER BY createdAt ASC;

0 comments on commit 53e816e

Please sign in to comment.