Skip to content

Commit

Permalink
Remove unnecessary disable
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurickh committed Jan 25, 2020
1 parent 6c54cbf commit cf3b47b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/retryAll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { RequestHandler } from 'express'
import { Job } from 'bull'
import { Job as JobMq } from 'bullmq'

import { BullBoardQueues } from '../@types'
import { BullBoardQueues } from '../@types/app'

export const retryAll: RequestHandler = async (req, res) => {
try {
Expand All @@ -16,7 +16,7 @@ export const retryAll: RequestHandler = async (req, res) => {
return res.status(404).send({ error: 'queue not found' })
}

const jobs: (Job | JobMq)[] = await queue.getJobs(['failed']) // eslint-disable-line prettier/prettier
const jobs: (Job | JobMq)[] = await queue.getJobs(['failed'])
await Promise.all(jobs.map(job => job.retry()))

return res.sendStatus(200)
Expand Down

0 comments on commit cf3b47b

Please sign in to comment.