You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
551 B
38 lines
551 B
import {
|
|
DATA_URL,
|
|
PROCEDURES,
|
|
} from 'config'
|
|
import { callApi } from 'helpers'
|
|
|
|
const proc = PROCEDURES.save_user_match_second
|
|
|
|
type Args = {
|
|
half?: number,
|
|
matchId: number,
|
|
seconds: number,
|
|
sport: number,
|
|
}
|
|
|
|
export const reportPlayerProgress = ({
|
|
half,
|
|
matchId,
|
|
seconds,
|
|
sport,
|
|
}: Args) => {
|
|
const config = {
|
|
body: {
|
|
params: {
|
|
_p_half: half,
|
|
_p_match_id: matchId,
|
|
_p_second: seconds,
|
|
_p_sport: sport,
|
|
},
|
|
proc,
|
|
},
|
|
}
|
|
|
|
callApi({
|
|
config,
|
|
url: DATA_URL,
|
|
})
|
|
}
|
|
|