Skip to content

Commit

Permalink
fix(web): make all time query more specific
Browse files Browse the repository at this point in the history
  • Loading branch information
cstrnt committed Aug 28, 2024
1 parent 393db14 commit 6323913
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions apps/web/prisma/sql/getEventsByTestIdForAllTime.sql
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ WHERE
AND TYPE = ?
AND(DATE(createdAt) BETWEEN DATE((
SELECT
createdAt FROM `Event`
ORDER BY
createdAt ASC
LIMIT 1))
AND DATE(NOW()))
MIN(createdAt)
FROM `Event`
WHERE
testId = ?
AND TYPE = ?))
AND DATE(NOW()))
GROUP BY
DATE(createdAt),
selectedVariant
DATE(createdAt), selectedVariant

0 comments on commit 6323913

Please sign in to comment.