From b0456158623947cfed4fca7951cc746aca139cbc Mon Sep 17 00:00:00 2001 From: Valentin Kaelin Date: Sat, 10 Oct 2020 22:41:30 +0200 Subject: [PATCH] refactor(front): update summoners/live payload --- client/src/store/modules/summoner.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/client/src/store/modules/summoner.js b/client/src/store/modules/summoner.js index e001c06..744a250 100644 --- a/client/src/store/modules/summoner.js +++ b/client/src/store/modules/summoner.js @@ -155,9 +155,14 @@ export const actions = { }, async liveMatchRequest({ commit, rootState }) { commit('LIVE_LOADING') - const region = rootState.regionsList[rootState.settings.region] - - const resp = await axios(({ url: 'summoner/live', data: { account: state.basic.account, region }, method: 'POST' })).catch(() => { }) + const resp = await axios(({ + url: 'summoner/live', + data: { + id: state.basic.account.id, + region: rootState.regionsList[rootState.settings.region] + }, + method: 'POST' + })).catch(() => { }) console.log('---LIVE---') console.log(resp.data)