From 613389476d57cab3cbd16419e7536fff3bd899d1 Mon Sep 17 00:00:00 2001 From: Jack Zhang Date: Wed, 29 Nov 2023 15:02:08 -0600 Subject: [PATCH] ran prettier --- .github/workflows/node.js.yml | 4 ++-- src/server/views/dashboard/queueJobsByState.js | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index a734e6be..db8c584e 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest env: - NPM_AUTH_TOKEN: "${{ secrets.NPM_AUTH_TOKEN }}" + NPM_AUTH_TOKEN: '${{ secrets.NPM_AUTH_TOKEN }}' strategy: matrix: @@ -71,4 +71,4 @@ jobs: env: # Need to use a separate token so we can push to the protected default branch. GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} - NPM_AUTH_TOKEN: "${{ secrets.NPM_AUTH_TOKEN }}" + NPM_AUTH_TOKEN: '${{ secrets.NPM_AUTH_TOKEN }}' diff --git a/src/server/views/dashboard/queueJobsByState.js b/src/server/views/dashboard/queueJobsByState.js index 50cfb4f4..23e5c555 100644 --- a/src/server/views/dashboard/queueJobsByState.js +++ b/src/server/views/dashboard/queueJobsByState.js @@ -30,7 +30,6 @@ function isValidState(state, queue) { } async function handler(req, res) { - if (req.params.ext === 'json') return _json(req, res); return _html(req, res); @@ -151,9 +150,11 @@ async function _html(req, res) { } pages = pages.filter((page) => page <= _.ceil(jobCounts[state] / pageSize)); jobs = jobs.map((job) => { - job.scheduledTimeToExecute = moment(new Date(job.timestamp + job.delay)).fromNow(true); - return job; - }); + job.scheduledTimeToExecute = moment( + new Date(job.timestamp + job.delay) + ).fromNow(true); + return job; + }); const disablePromote = !(state === 'delayed' && !queue.IS_BEE); const disableRetry = !( state === 'failed' ||