Skip to content

Commit

Permalink
fix(backend): Don't count groupBy
Browse files Browse the repository at this point in the history
  • Loading branch information
sebasptsch committed Dec 29, 2023
1 parent 474f5fb commit 7e1f79b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/backend/src/services/outreach.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ export async function getOutreachTime(

const [firstData] = await tx
.select({ total: count() })
.from(rsvp)
.from(user)
.leftJoin(rsvp, eq(user.id, rsvp.userId))
.leftJoin(event, eq(rsvp.eventId, event.id))
.innerJoin(user, eq(rsvp.userId, user.id))
.where(
and(
eq(event.type, "Outreach"),
Expand Down

0 comments on commit 7e1f79b

Please sign in to comment.