fixed tracking api

This commit is contained in:
2022-02-02 22:02:28 +01:00
parent b6369e56c0
commit 23bc01d46f
3 changed files with 4 additions and 6 deletions

View File

@@ -1,2 +1,5 @@
export const SHARECODE_REGEX = /^CSGO(?:-?[ABCDEFGHJKLMNOPQRSTUVWXYZabcdefhijkmnopqrstuvwxyz23456789]{5}){5}$/
export const AUTHCODE_REGEX = /^[ABCDEFGHJKLMNOPQRSTUVWXYZ23456789]{4}-[ABCDEFGHJKLMNOPQRSTUVWXYZ23456789]{5}-[ABCDEFGHJKLMNOPQRSTUVWXYZ23456789]{4}$/
export const NAV_HEIGHT = 70
export const FOOTER_HEIGHT = 200

View File

@@ -201,10 +201,7 @@ export const TrackMe = async (store, id64, authcode, sharecode = '') => {
}
await axios
.post({
url: `${API_URL}/player/${id64}/track`,
data: `authcode=${authcode}&sharecode=${sharecode}`
})
.post(`${API_URL}/player/${id64}/track`, `authcode=${authcode}&sharecode=${sharecode}`)
.then((res) => {
if (res.status === STATUS.ACCEPTED) {
store.commit({

View File

@@ -209,8 +209,6 @@ export default {
data.matchDetails = store.state.matchDetails
console.log(data.matchDetails)
data.matchDetails.stats.forEach(p => {
p.player.name = ProcessName(p.player.name)
})