mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-03-21 18:04:39 -05:00
Fix tournaments always reporting as not saved if placeholder team (in /looking)
This commit is contained in:
parent
a1d2784a9e
commit
19213056a7
|
|
@ -21,7 +21,7 @@ export const loader = async ({ params }: LoaderFunctionArgs) => {
|
|||
tournamentId,
|
||||
userId: user.id,
|
||||
});
|
||||
if (!ownTournamentTeam)
|
||||
if (!ownTournamentTeam) {
|
||||
return {
|
||||
mapPool: null,
|
||||
friendPlayers: null,
|
||||
|
|
@ -31,6 +31,7 @@ export const loader = async ({ params }: LoaderFunctionArgs) => {
|
|||
tournamentId,
|
||||
}),
|
||||
};
|
||||
}
|
||||
|
||||
return {
|
||||
mapPool: findMapPoolByTeamId(ownTournamentTeam.id),
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ const stm = sql.prepare(/*sql*/ `
|
|||
and "TournamentTeamMember"."isOwner" = 1
|
||||
where
|
||||
"TournamentTeam"."tournamentId" = @tournamentId
|
||||
and "TournamentTeam"."isPlaceholder" = 0
|
||||
and "TournamentTeamMember"."userId" = @userId
|
||||
`);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user