Skip to content

Commit

Permalink
Show secondary team members in LFG post Closes #1906
Browse files Browse the repository at this point in the history
  • Loading branch information
Sendouc committed Oct 5, 2024
1 parent 76c99af commit c24c429
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/features/lfg/LFGRepository.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ export async function posts(user?: { id: number; plusTier: number | null }) {
"UserSubmittedImage.url as avatarUrl",
jsonArrayFrom(
innerEb
.selectFrom(["TeamMember"])
.innerJoin("User", "User.id", "TeamMember.userId")
.selectFrom("TeamMemberWithSecondary")
.innerJoin("User", "User.id", "TeamMemberWithSecondary.userId")
.leftJoin("PlusTier", "PlusTier.userId", "User.id")
.select(({ eb: innestEb }) => [
...COMMON_USER_FIELDS,
Expand All @@ -73,7 +73,7 @@ export async function posts(user?: { id: number; plusTier: number | null }) {
]),
).as("weaponPool"),
])
.whereRef("TeamMember.teamId", "=", "Team.id"),
.whereRef("TeamMemberWithSecondary.teamId", "=", "Team.id"),
).as("members"),
])
.whereRef("Team.id", "=", "LFGPost.teamId"),
Expand Down

0 comments on commit c24c429

Please sign in to comment.