Skip to content

Commit

Permalink
refactor: clean up signups query
Browse files Browse the repository at this point in the history
  • Loading branch information
sgfost committed Jan 26, 2024
1 parent 8c41e0b commit f3a15ac
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions server/src/services/tournament.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,8 @@ export class TournamentService extends BaseService {
const query = this.em
.getRepository(User)
.createQueryBuilder("user")
.leftJoin("user.invites", "invites")
.leftJoin("invites.signups", "signup")
.leftJoin("signup.tournamentRoundInvite", "invite")
.leftJoin("user.invites", "invite")
.leftJoin("invite.signups", "signup")
.where("signup.tournamentRoundDateId = :tournamentRoundDateId", { tournamentRoundDateId })
.andWhere("invite.hasParticipated = false")
.select("user.email")
Expand Down

0 comments on commit f3a15ac

Please sign in to comment.