From 2b2f925146ca250bcff39ec49a6974f1eb49c51e Mon Sep 17 00:00:00 2001 From: CJ_Clippy Date: Fri, 19 Jul 2024 01:55:31 -0800 Subject: [PATCH] fix typo --- packages/temporal-worker/src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/temporal-worker/src/index.ts b/packages/temporal-worker/src/index.ts index d922e81..f477e11 100644 --- a/packages/temporal-worker/src/index.ts +++ b/packages/temporal-worker/src/index.ts @@ -16,7 +16,7 @@ async function run() { // const codePath = new URL('./workflows.js', import.meta.url).pathname const codePath = path.join(__dirname, './workflows.cjs') console.log(`codePath=${codePath}`) - const workflowsBundle = { + const workflowBundle = { codePath } console.log(`codePath=${codePath}`) @@ -36,7 +36,7 @@ async function run() { // the Temporal server. const worker = await Worker.create({ // ...workflowOption(), - workflowsBundle, + workflowBundle, activities, taskQueue: process.env.TEMPORAL_TASK_QUEUE!, });