|
|
|
@ -1,5 +1,6 @@ |
|
|
|
import map from 'lodash/map' |
|
|
|
import map from 'lodash/map' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import parse from 'date-fns/parse' |
|
|
|
import format from 'date-fns/format' |
|
|
|
import format from 'date-fns/format' |
|
|
|
|
|
|
|
|
|
|
|
import type { Match } from 'requests' |
|
|
|
import type { Match } from 'requests' |
|
|
|
@ -22,7 +23,11 @@ const prepareMatch = (match: Match) => { |
|
|
|
team2, |
|
|
|
team2, |
|
|
|
tournament, |
|
|
|
tournament, |
|
|
|
} = match |
|
|
|
} = match |
|
|
|
const date = new Date(matchDate) |
|
|
|
const date = parse( |
|
|
|
|
|
|
|
matchDate, |
|
|
|
|
|
|
|
'yyyy-MM-dd HH:mm:ssx', |
|
|
|
|
|
|
|
new Date(), |
|
|
|
|
|
|
|
) |
|
|
|
return { |
|
|
|
return { |
|
|
|
access: getMatchAccess(match), |
|
|
|
access: getMatchAccess(match), |
|
|
|
calc, |
|
|
|
calc, |
|
|
|
|