Skip to content

Commit

Permalink
fix: Fix zeebe-node worker script
Browse files Browse the repository at this point in the history
  • Loading branch information
vsgoulart committed Aug 14, 2023
1 parent 81f27d8 commit f7b485b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nodejs/email-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ const zbc = new ZBClient({
},
})

zbc.createWorker({
const worker = zbc.createWorker({
taskType: 'email',
taskHandler: (job, _, worker) => {
taskHandler: (job) => {
const { message_content } = job.variables
worker.log(`Sending email with message content: ${message_content}`)
job.complete()
Expand Down

0 comments on commit f7b485b

Please sign in to comment.