Skip to content

πŸ“¨ The ultimate agentic social media scheduling tool πŸ€–

feat: not possible to regsiter new attributes with tls

Nevo Davidfdd716874281
diff --git a/libraries/nestjs-libraries/src/temporal/temporal.register.ts b/libraries/nestjs-libraries/src/temporal/temporal.register.ts
index e8090aad6..10fe7a7e3 100644
--- a/libraries/nestjs-libraries/src/temporal/temporal.register.ts
+++ b/libraries/nestjs-libraries/src/temporal/temporal.register.ts
@@ -1,9 +1,4 @@
-import {
- Global,
- Injectable,
- Module,
- OnModuleInit,
-} from '@nestjs/common';
+import { Global, Injectable, Module, OnModuleInit } from '@nestjs/common';
import { TemporalService } from 'nestjs-temporal-core';
import { Connection } from '@temporalio/client';
@@ -12,6 +7,9 @@ export class TemporalRegister implements OnModuleInit {
constructor(private _client: TemporalService) {}
async onModuleInit(): Promise<void> {
+ if (process.env.TEMPORAL_TLS === 'true') {
+ return;
+ }
const connection = this._client?.client?.getRawClient()
?.connection as Connection;
@@ -22,7 +20,7 @@ export class TemporalRegister implements OnModuleInit {
const neededAttribute = ['organizationId', 'postId'];
const missingAttributes = neededAttribute.filter(
- (attr) => !customAttributes[attr],
+ (attr) => !customAttributes[attr]
);
if (missingAttributes.length > 0) {