fix(get-matches): change method get-matches

pull/62/head
Andrei Dekterev 3 years ago
parent e66d8147fa
commit a7bd8c392e
  1. 10
      src/requests/getMatches/getHomeMatches.tsx

@ -21,14 +21,14 @@ export const getHomeMatches = async ({
offset, offset,
timezoneOffset, timezoneOffset,
}: Args): Promise<MatchesBySection> => { }: Args): Promise<MatchesBySection> => {
const url = `${API_ROOT}/v1/data/get-matches` const url = `${API_ROOT}/v1/data/matches/query`
const config = { const config = {
body: { body: {
_p_date: `${date} 00:00:00`, date: `${date} 00:00:00`,
_p_gmt: timezoneOffset, gmt: timezoneOffset,
_p_limit: limit, limit,
_p_offset: offset, offset,
...client.requests?.[proc], ...client.requests?.[proc],
}, },
} }

Loading…
Cancel
Save