fix: riot game name in match v5 + quickplay

This commit is contained in:
Valentin Kaelin 2023-12-04 19:43:21 +01:00
parent 8795182d9e
commit b8bac1f952
3 changed files with 9 additions and 5 deletions

View file

@ -15,7 +15,7 @@ export const gameModes = {
},
400: {
type: 'Normal',
name: 'DRAFT 5vs5',
name: 'DRAFT',
},
420: {
type: 'Ranked',
@ -23,11 +23,11 @@ export const gameModes = {
},
430: {
type: 'Normal',
name: 'BLIND 5vs5',
name: 'BLIND',
},
440: {
type: 'Ranked',
name: 'FLEX 5vs5',
name: 'FLEX',
},
460: {
type: 'Normal',
@ -37,6 +37,10 @@ export const gameModes = {
type: 'Ranked',
name: 'FLEX 3vs3',
},
490: {
type: 'Normal',
name: 'QUICKPLAY',
},
700: {
type: 'Ranked',
name: 'CLASH',

View file

@ -106,7 +106,7 @@ class MatchParser {
participant_id: player.participantId,
summoner_id: player.summonerId,
summoner_puuid: player.puuid,
summoner_name: player.summonerName,
summoner_name: player.summonerName || player.riotIdGameName,
win: team.win ? 1 : 0,
loss: team.win ? 0 : 1,
remake: isRemake ? 1 : 0,

View file

@ -90,7 +90,7 @@ export interface ParticipantDto {
profileIcon: number
puuid: string
quadraKills: number
riotIdName: string
riotIdGameName: string
riotIdTagline: string
role: RoleDto // TODO
sightWardsBoughtInGame: number