diff --git a/.github/workflows/tools-docker-image.yaml b/.github/workflows/tools-docker-image.yaml index e508705..ff663a8 100644 --- a/.github/workflows/tools-docker-image.yaml +++ b/.github/workflows/tools-docker-image.yaml @@ -12,8 +12,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - with: - ref: ${{ github.event.inputs.BRANCH_NAME }} + # with: + # ref: ${{ github.event.inputs.BRANCH_NAME }} - name: Generate Timestamp run: | @@ -43,9 +43,11 @@ jobs: name: Create Tools Docker Image on: - workflow_dispatch: - inputs: - BRANCH_NAME: - default: main - description: Branch to build the image from - required: true + # workflow_dispatch: + # inputs: + # BRANCH_NAME: + # default: main + # description: Branch to build the image from + # required: true + push: + branches: ['usman/app-base'] diff --git a/app/api/logs/block-height/route.ts b/app/api/logs/block-height/route.ts index 7c72ad6..22aa194 100644 --- a/app/api/logs/block-height/route.ts +++ b/app/api/logs/block-height/route.ts @@ -164,9 +164,7 @@ timestamp >= "${startTime}" AND timestamp <= "${endTime}" if (!response.ok) if (response.status === 429) { console.log('Hit quota limit, backing off for 10 seconds'); - await Promise.resolve((resolve: () => void) => - setTimeout(resolve, 10000), - ); + await new Promise((resolve) => setTimeout(resolve, 10000)); return queryLog( accessToken, endTime,