Skip to content

Commit

Permalink
chore: ensure we are getting the right file
Browse files Browse the repository at this point in the history
  • Loading branch information
Acidiney Dias committed Feb 6, 2024
1 parent 842cc41 commit a78f2cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/queue_provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default class QueueProvider {
async boot() {
const files = await fs.readdir(this.app.startPath())

const jobFile = files.find((e) => /^jobs/.test(e))
const jobFile = files.find((e) => /^jobs\.(ts|js)$/.test(e))

if (!jobFile) {
throw new Error('[@acidiney/bull-queue]> #start/job file missing!')
Expand Down

0 comments on commit a78f2cd

Please sign in to comment.