diff --git a/app/features/tournament-lfg/TournamentLFGRepository.server.ts b/app/features/tournament-lfg/TournamentLFGRepository.server.ts index 3af2f3b34..bd0bfc214 100644 --- a/app/features/tournament-lfg/TournamentLFGRepository.server.ts +++ b/app/features/tournament-lfg/TournamentLFGRepository.server.ts @@ -152,6 +152,7 @@ export async function findSubGroups(tournamentId: number) { .where("TournamentTeam.tournamentId", "=", tournamentId) .where("TournamentTeam.isPlaceholder", "=", 1) .where("TournamentTeamMember.isStayAsSub", "=", 1) + .groupBy("TournamentTeam.id") .execute(); return rows;