From 4ca6221dbf564e1f9444900e05943830751fbe91 Mon Sep 17 00:00:00 2001 From: Richard Date: Mon, 16 Sep 2024 15:38:32 +1000 Subject: [PATCH] fix(apiToken): Signal should automatically be forwarded to childern --- package.json | 2 +- src/workflows/StatefulWorkflow.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 04b6478..674e06e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "chrono-forge", - "version": "0.6.9", + "version": "0.6.10", "description": "A comprehensive framework for building resilient Temporal workflows, advanced state management, and real-time streaming activities in TypeScript. Designed for a seamless developer experience with powerful abstractions, dynamic orchestration, and full control over distributed systems.", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/workflows/StatefulWorkflow.ts b/src/workflows/StatefulWorkflow.ts index 1ed3dc4..c07d6be 100644 --- a/src/workflows/StatefulWorkflow.ts +++ b/src/workflows/StatefulWorkflow.ts @@ -116,6 +116,7 @@ export abstract class StatefulWorkflow< this.log.info(`Updating apiToken...`); this.apiToken = apiToken; this.pendingUpdate = true; + this.forwardSignalToChildren('apiToken', apiToken); } }