Fix tournament admin adding teams resulting in wrong captain

This commit is contained in:
Kalle 2024-07-28 17:25:59 +03:00
parent 7f69533c79
commit 19354597c6

View File

@ -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,
});