|
|
|
@ -1,4 +1,4 @@ |
|
|
|
import { PROCEDURES } from 'config' |
|
|
|
import { PROCEDURES, API_ROOT } from 'config' |
|
|
|
|
|
|
|
|
|
|
|
import { client } from 'config/clients' |
|
|
|
import { client } from 'config/clients' |
|
|
|
|
|
|
|
|
|
|
|
@ -21,6 +21,8 @@ export const getHomeMatches = async ({ |
|
|
|
offset, |
|
|
|
offset, |
|
|
|
timezoneOffset, |
|
|
|
timezoneOffset, |
|
|
|
}: Args): Promise<MatchesBySection> => { |
|
|
|
}: Args): Promise<MatchesBySection> => { |
|
|
|
|
|
|
|
const url = `${API_ROOT}/v1/data/get-matches` |
|
|
|
|
|
|
|
|
|
|
|
const config = { |
|
|
|
const config = { |
|
|
|
body: { |
|
|
|
body: { |
|
|
|
_p_date: `${date} 00:00:00`, |
|
|
|
_p_date: `${date} 00:00:00`, |
|
|
|
@ -31,5 +33,5 @@ export const getHomeMatches = async ({ |
|
|
|
}, |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return requestMatches(config).then(getMatchesPreviews) |
|
|
|
return requestMatches(config, url).then(getMatchesPreviews) |
|
|
|
} |
|
|
|
} |
|
|
|
|