diff --git a/docs/gitbook/patterns/process-step-jobs.md b/docs/gitbook/patterns/process-step-jobs.md index 5cc4327ed8..700ade7df0 100644 --- a/docs/gitbook/patterns/process-step-jobs.md +++ b/docs/gitbook/patterns/process-step-jobs.md @@ -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) { @@ -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) {