mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-07-15 07:43:44 -05:00
Tournament admin page resolve new member IGN from input when set
This commit is contained in:
parent
61ecc307b9
commit
672c8dca83
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user