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

View file

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

View file

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