Skip to content

Commit

Permalink
ran prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
JZhang502 committed Nov 29, 2023
1 parent 961ae7d commit 6133894
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 }}'
9 changes: 5 additions & 4 deletions src/server/views/dashboard/queueJobsByState.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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' ||
Expand Down

0 comments on commit 6133894

Please sign in to comment.