diff --git a/client/src/components/Form/SearchFormRegion.vue b/client/src/components/Form/SearchFormRegion.vue index 6a7fadd..e27d110 100644 --- a/client/src/components/Form/SearchFormRegion.vue +++ b/client/src/components/Form/SearchFormRegion.vue @@ -73,7 +73,12 @@ export default { 'NA', 'OCE', 'TR', - 'RU' + 'RU', + 'PH', + 'SG', + 'TH', + 'TW', + 'VN', ], } }, diff --git a/client/src/store/index.js b/client/src/store/index.js index bdfefb5..7f571a5 100644 --- a/client/src/store/index.js +++ b/client/src/store/index.js @@ -30,7 +30,12 @@ export default new Vuex.Store({ 'na': 'na1', 'oce': 'oc1', 'tr': 'tr1', - 'ru': 'ru' + 'ru': 'ru', + 'ph': 'ph2', + 'sg': 'sg2', + 'th': 'th2', + 'tw': 'tw2', + 'vn': 'vn2', }, roles: ['TOP', 'JUNGLE', 'MIDDLE', 'BOTTOM', 'UTILITY'] }, diff --git a/server/app/Services/MatchService.ts b/server/app/Services/MatchService.ts index c6c0e85..9b57d15 100644 --- a/server/app/Services/MatchService.ts +++ b/server/app/Services/MatchService.ts @@ -29,7 +29,7 @@ class MatchService { console.log('--> CALL TO RIOT MATCHLIST') const newMatchList = await Jax.Matchlist.puuid(puuid, region, index) // Error while fetching Riot API - if (!newMatchList) { + if (!newMatchList || !newMatchList.length) { return matchList } matchList = [...matchList, ...newMatchList] diff --git a/server/app/helpers.ts b/server/app/helpers.ts index 165c5c7..e08feca 100644 --- a/server/app/helpers.ts +++ b/server/app/helpers.ts @@ -13,6 +13,11 @@ export enum LeagueRegion { RUSSIA = 'ru', TURKEY = 'tr1', JAPAN = 'jp1', + PHILIPPINES = 'ph2', + SINGAPORE = 'sg2', + THAILAND = 'th2', + TAIWAN = 'tw2', + VIETNAM = 'vn2', } /** @@ -40,6 +45,11 @@ export function getRiotRegion(region: string): RiotRegion { case LeagueRegion.LATIN_AMERICA_SOUTH: return RiotRegion.AMERICAS case LeagueRegion.OCEANIA: + case LeagueRegion.PHILIPPINES: + case LeagueRegion.SINGAPORE: + case LeagueRegion.THAILAND: + case LeagueRegion.TAIWAN: + case LeagueRegion.VIETNAM: return RiotRegion.SEA case LeagueRegion.KOREA: case LeagueRegion.JAPAN: