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 6323913 commit 86b2542
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions apps/web/prisma/sql/getEventsByTestIdForAllTime.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
-- @param {String} $1:testId
-- @param {Int} $2:type
-- @param {String} $3:testIdAgain
-- @param {Int} $4:typeAgain

SELECT
COUNT(*) AS eventCount,
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/server/services/EventService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export abstract class EventService {
}

return await prisma.$queryRawTyped(
getEventsByTestIdForAllTime(testId, eventType)
getEventsByTestIdForAllTime(testId, eventType, testId, eventType)
);
}

Expand Down

0 comments on commit 86b2542

Please sign in to comment.