From 3c25c7f701aac9f307d5f2a6ae987630827aef8a Mon Sep 17 00:00:00 2001 From: Andrei Dekterev Date: Sat, 5 Mar 2022 16:24:24 +0700 Subject: [PATCH] fix(#2246): change interval for request --- Makefile | 2 +- src/features/AuthStore/helpers.tsx | 2 +- src/features/MatchPage/hooks/useMatchProfile.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index d1ff9828..4b467971 100644 --- a/Makefile +++ b/Makefile @@ -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/ 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 rsync -zavP --delete-before build/ -e 'ssh -p 666' ott-staging@staging.instat.tv:/usr/local/www/ott-staging/d-wwwroot/ diff --git a/src/features/AuthStore/helpers.tsx b/src/features/AuthStore/helpers.tsx index 48893795..35eeabf8 100644 --- a/src/features/AuthStore/helpers.tsx +++ b/src/features/AuthStore/helpers.tsx @@ -24,7 +24,7 @@ const redirectUrl = () => { return `${window.origin}/redirect` } if (ENV === 'staging') { - return `https://c-${ENV}.${client.name}.tv/redirect` + return `https://${ENV}.${client.name}.tv/redirect` } return `https://${client.name}.tv/redirect` } diff --git a/src/features/MatchPage/hooks/useMatchProfile.tsx b/src/features/MatchPage/hooks/useMatchProfile.tsx index eb89b214..2fa2ac00 100644 --- a/src/features/MatchPage/hooks/useMatchProfile.tsx +++ b/src/features/MatchPage/hooks/useMatchProfile.tsx @@ -45,7 +45,7 @@ export const useMatchProfile = () => { let getIntervalMatch if (matchProfile?.live && !matchProfile.youtube_link) { getIntervalMatch = setInterval( - () => getMatchInfo(sportType, matchId).then(setMatchProfile), 1000 * 10, + () => getMatchInfo(sportType, matchId).then(setMatchProfile), 1000 * 60 * 3, ) } else { return clearInterval(getIntervalMatch)