Skip to content

Commit

Permalink
fix(web): event retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
cstrnt committed Aug 12, 2024
1 parent 01da75c commit d5b6ee1
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions apps/web/src/server/trpc/router/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,14 @@ export const projectRouter = router({
},
include: {
tests: {
include: { options: true, events: true },
where: {
createdAt: {
gte: new Date(Date.now() - ms("30d")),
include: {
options: true,
events: {
where: {
createdAt: {
gte: new Date(Date.now() - ms("30d")),
},
},
},
},
},
Expand Down

0 comments on commit d5b6ee1

Please sign in to comment.