From 974d0960c5990c725a0f13483ab7a8e7e5403949 Mon Sep 17 00:00:00 2001 From: Rogger Valverde Date: Mon, 4 Nov 2024 21:44:03 -0600 Subject: [PATCH] docs(patterns): fix token type in process-step-jobs (#2881) --- docs/gitbook/patterns/process-step-jobs.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {