mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-25 07:32:19 -05:00
Fix tournament admin adding teams resulting in wrong captain
This commit is contained in:
parent
7f69533c79
commit
19354597c6
|
|
@ -76,7 +76,7 @@ export const action: ActionFunction = async ({ request, params }) => {
|
|||
await TournamentTeamRepository.create({
|
||||
ownerInGameName: await inGameNameIfNeeded({
|
||||
tournament,
|
||||
userId: user.id,
|
||||
userId: data.userId,
|
||||
}),
|
||||
team: {
|
||||
name: data.teamName,
|
||||
|
|
@ -84,7 +84,7 @@ export const action: ActionFunction = async ({ request, params }) => {
|
|||
prefersNotToHost: 0,
|
||||
teamId: null,
|
||||
},
|
||||
userId: user.id,
|
||||
userId: data.userId,
|
||||
tournamentId,
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user