From b8bac1f9522dcee9c566233a253b717ff31f1a3b Mon Sep 17 00:00:00 2001 From: Valentin Kaelin Date: Mon, 4 Dec 2023 19:43:21 +0100 Subject: [PATCH] fix: riot game name in match v5 + quickplay --- client/src/data/data.js | 10 +++++++--- server/app/Parsers/MatchParser.ts | 2 +- server/app/Services/Jax/src/Endpoints/MatchEndpoint.ts | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/client/src/data/data.js b/client/src/data/data.js index 6ac25aa..4624181 100644 --- a/client/src/data/data.js +++ b/client/src/data/data.js @@ -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', diff --git a/server/app/Parsers/MatchParser.ts b/server/app/Parsers/MatchParser.ts index ab9fce5..7d11870 100644 --- a/server/app/Parsers/MatchParser.ts +++ b/server/app/Parsers/MatchParser.ts @@ -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, diff --git a/server/app/Services/Jax/src/Endpoints/MatchEndpoint.ts b/server/app/Services/Jax/src/Endpoints/MatchEndpoint.ts index c256bbf..7b490b1 100644 --- a/server/app/Services/Jax/src/Endpoints/MatchEndpoint.ts +++ b/server/app/Services/Jax/src/Endpoints/MatchEndpoint.ts @@ -90,7 +90,7 @@ export interface ParticipantDto { profileIcon: number puuid: string quadraKills: number - riotIdName: string + riotIdGameName: string riotIdTagline: string role: RoleDto // TODO sightWardsBoughtInGame: number