fix(#2246): change interval for request

keep-around/3c25c7f701aac9f307d5f2a6ae987630827aef8a
Andrei Dekterev 4 years ago
parent dd6582f613
commit 3c25c7f701
  1. 2
      Makefile
  2. 2
      src/features/AuthStore/helpers.tsx
  3. 2
      src/features/MatchPage/hooks/useMatchProfile.tsx

@ -88,7 +88,7 @@ b-stage: build
rsync -zavP --delete-before build/ -e 'ssh -p 666' ott-staging@staging.instat.tv:/usr/local/www/ott-staging/b-wwwroot/ rsync -zavP --delete-before build/ -e 'ssh -p 666' ott-staging@staging.instat.tv:/usr/local/www/ott-staging/b-wwwroot/
c-stage: build c-stage: build
rsync -zavP --delete-before build/ -e 'ssh -p 666' ott-staging@10.0.3.8:/usr/local/www/ott-staging/c-wwwroot/ rsync -zavP --delete-before build/ -e 'ssh -p 666' ott-staging@staging.instat.tv:/usr/local/www/ott-staging/c-wwwroot/
d-stage: build d-stage: build
rsync -zavP --delete-before build/ -e 'ssh -p 666' ott-staging@staging.instat.tv:/usr/local/www/ott-staging/d-wwwroot/ rsync -zavP --delete-before build/ -e 'ssh -p 666' ott-staging@staging.instat.tv:/usr/local/www/ott-staging/d-wwwroot/

@ -24,7 +24,7 @@ const redirectUrl = () => {
return `${window.origin}/redirect` return `${window.origin}/redirect`
} }
if (ENV === 'staging') { if (ENV === 'staging') {
return `https://c-${ENV}.${client.name}.tv/redirect` return `https://${ENV}.${client.name}.tv/redirect`
} }
return `https://${client.name}.tv/redirect` return `https://${client.name}.tv/redirect`
} }

@ -45,7 +45,7 @@ export const useMatchProfile = () => {
let getIntervalMatch let getIntervalMatch
if (matchProfile?.live && !matchProfile.youtube_link) { if (matchProfile?.live && !matchProfile.youtube_link) {
getIntervalMatch = setInterval( getIntervalMatch = setInterval(
() => getMatchInfo(sportType, matchId).then(setMatchProfile), 1000 * 10, () => getMatchInfo(sportType, matchId).then(setMatchProfile), 1000 * 60 * 3,
) )
} else { } else {
return clearInterval(getIntervalMatch) return clearInterval(getIntervalMatch)

Loading…
Cancel
Save