diff --git a/helmfiles/stg.yaml b/helmfiles/stg.yaml index d388040..263570f 100644 --- a/helmfiles/stg.yaml +++ b/helmfiles/stg.yaml @@ -14,9 +14,9 @@ charts: value: in-factory.dadosfera.ai - name: maestro.tr_factory_url value: in-factory.dadosfera.ai - - name: open_customer_id + - name: maestro.open_customer_id value: b3e3dfe5-b992-4586-a73c-c0b0c00f615d - - name: open_group_id + - name: maestro.open_group_id value: e3f98a2f-7748-4981-8505-7695c8ca8218 - name: replicaCount value: 1 \ No newline at end of file diff --git a/maestro/templates/deployment.yaml b/maestro/templates/deployment.yaml index f8221d7..74a7a5c 100644 --- a/maestro/templates/deployment.yaml +++ b/maestro/templates/deployment.yaml @@ -95,6 +95,10 @@ spec: value: {{ .Values.maestro.tr_factory_url }} - name: UPLOAD_FILE_AGENT_CONNECTION value: {{ .Values.maestro.upload_file_agent_connection }} + - name: OPEN_CUSTOMER_ID + value: {{ .Values.maestro.open_customer_id }} + - name: OPEN_GROUP_ID + value: {{ .Values.maestro.open_group_id }} - name: JWT_PRIVATE_KEY valueFrom: secretKeyRef: diff --git a/src/modules/open-data/open-data.controller.ts b/src/modules/open-data/open-data.controller.ts index 4a184b7..d85c53a 100644 --- a/src/modules/open-data/open-data.controller.ts +++ b/src/modules/open-data/open-data.controller.ts @@ -46,11 +46,15 @@ export class OpenDataController { ) { this.logger.info('createUser for open data' + JSON.stringify({ - origin: request.headers.origin, language, body })); + this.logger.info('headers' + + JSON.stringify({ + headers: request.headers + })); + // "401573bb-334f-44b2-b30e-88d4cea31ae9" // const OPENDATA_PUBLIC_USERS_GROUP_ID = process.env.OPEN_GROUP_ID; // ""f239718a-a271-4ef9-ae7e-02a2f0f3aa6e""