mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-26 05:12:19 -05:00
Tournament admin page resolve new member IGN from input when set
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user