mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-12 14:16:04 -05:00
Fix tournament admin adding teams resulting in wrong captain
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user