Skip to content

Commit

Permalink
docs(patterns): fix token type in process-step-jobs (#2881)
Browse files Browse the repository at this point in the history
  • Loading branch information
roggervalf authored Nov 5, 2024
1 parent 092019f commit 974d096
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/gitbook/patterns/process-step-jobs.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ enum Step {

const worker = new Worker(
'queueName',
async (job: Job, token: string) => {
async (job: Job, token?: string) => {
let step = job.data.step;
while (step !== Step.Finish) {
switch (step) {
Expand Down Expand Up @@ -147,7 +147,7 @@ enum Step {

const worker = new Worker(
'parentQueueName',
async (job: Job, token: string) => {
async (job: Job, token?: string) => {
let step = job.data.step;
while (step !== Step.Finish) {
switch (step) {
Expand Down

0 comments on commit 974d096

Please sign in to comment.