IO-2733 Resolve notification showing incorrect time.

This commit is contained in:
Patrick Fic
2024-09-13 10:51:04 -07:00
parent 954504de8d
commit 73ec8b8a70
2 changed files with 4 additions and 4 deletions

View File

@@ -315,9 +315,9 @@ jobs:
command: | command: |
curl -L https://github.com/hasura/graphql-engine/raw/stable/cli/get.sh | bash curl -L https://github.com/hasura/graphql-engine/raw/stable/cli/get.sh | bash
hasura migrate apply --endpoint https://db.test.bodyshop.app/ --admin-secret << parameters.secret >> hasura migrate apply --endpoint https://db.test.bodyshop.app/ --admin-secret << parameters.secret >>
sleep 5 sleep 15
hasura metadata apply --endpoint https://db.test.bodyshop.app/ --admin-secret << parameters.secret >> hasura metadata apply --endpoint https://db.test.bodyshop.app/ --admin-secret << parameters.secret >>
sleep 10 sleep 30
hasura metadata reload --endpoint https://db.test.bodyshop.app/ --admin-secret << parameters.secret >> hasura metadata reload --endpoint https://db.test.bodyshop.app/ --admin-secret << parameters.secret >>
- jira/notify: - jira/notify:
environment: Test (ImEX) - Hasura environment: Test (ImEX) - Hasura
@@ -427,7 +427,7 @@ workflows:
secret: ${HASURA_PROD_SECRET} secret: ${HASURA_PROD_SECRET}
filters: filters:
branches: branches:
only: master only: master-AIO
- rome-api-deploy: - rome-api-deploy:
filters: filters:
branches: branches:

View File

@@ -64,7 +64,7 @@ export function UpdateAlert({ updateAvailable }) {
}, [start, needRefresh, offlineReady]); }, [start, needRefresh, offlineReady]);
useEffect(() => { useEffect(() => {
if (needRefresh && timeLeft < 60000) { if (needRefresh && timerStarted && timeLeft < 60000) {
notification.open({ notification.open({
type: "warning", type: "warning",
closable: false, closable: false,