Skip to content

Commit aca6051

Browse files
committed
fix(temporal): correct taskQueue validation logic in worker configuration
- Updated the condition to check for the presence of taskQueue in worker configuration, ensuring that a warning is logged if it is missing.
1 parent 8b2e1f5 commit aca6051

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/nestjs-temporal/src/temporal.explorer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export class TemporalExplorer
103103
const connectionOptions = this.getNativeConnectionOptions();
104104

105105
// Worker must have a taskQueue configured
106-
if (!workerConfig.some((config) => !config.taskQueue)) {
106+
if (!workerConfig.some((config) => config.taskQueue)) {
107107
this.logger.warn(
108108
"Temporal worker configuration missing taskQueue. Worker will not be created.",
109109
);

0 commit comments

Comments
 (0)