mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-08-24 03:55:49 -05:00
Show team logo on tournaments even after team disbands Closes #1722
This commit is contained in:
@@ -125,16 +125,17 @@ export async function findById(id: number) {
|
||||
).as("mapPool"),
|
||||
jsonObjectFrom(
|
||||
innerEb
|
||||
.selectFrom("Team")
|
||||
.selectFrom("AllTeam")
|
||||
.leftJoin(
|
||||
"UserSubmittedImage",
|
||||
"Team.avatarImgId",
|
||||
"AllTeam.avatarImgId",
|
||||
"UserSubmittedImage.id",
|
||||
)
|
||||
.whereRef("Team.id", "=", "TournamentTeam.teamId")
|
||||
.whereRef("AllTeam.id", "=", "TournamentTeam.teamId")
|
||||
.select([
|
||||
"Team.customUrl",
|
||||
"AllTeam.customUrl",
|
||||
"UserSubmittedImage.url as logoUrl",
|
||||
"AllTeam.deletedAt",
|
||||
]),
|
||||
).as("team"),
|
||||
])
|
||||
|
||||
@@ -68,7 +68,7 @@ export default function TournamentTeamPage() {
|
||||
: undefined
|
||||
}
|
||||
/>
|
||||
{team.team ? (
|
||||
{team.team && !team.team.deletedAt ? (
|
||||
<Link
|
||||
to={teamPage(team.team.customUrl)}
|
||||
className="text-xxs text-center"
|
||||
|
||||
Reference in New Issue
Block a user