Tournament admin page resolve new member IGN from input when set

This commit is contained in:
Kalle 2026-06-27 20:36:46 +03:00
parent 61ecc307b9
commit 672c8dca83

View File

@ -288,7 +288,9 @@ export function upsertRegistration({
for (const userId of membersToAdd) {
const isOwner = isNew && userId === ownerUserId;
const inGameName = await resolveInGameName(trx, tournamentId, userId);
const inGameName =
inGameNameUpdates.find((member) => member.userId === userId)
?.inGameName ?? (await resolveInGameName(trx, tournamentId, userId));
await trx
.insertInto("TournamentTeamMember")