From 4dfe6c387072dfea1601a6c95f8fc7dbb9898dfd Mon Sep 17 00:00:00 2001 From: Gabriel Rosa Date: Mon, 13 Jun 2022 13:12:01 -0300 Subject: [PATCH] fallback for env vars --- src/clients/inputs/client.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/clients/inputs/client.service.ts b/src/clients/inputs/client.service.ts index dc8e765..3dbe549 100644 --- a/src/clients/inputs/client.service.ts +++ b/src/clients/inputs/client.service.ts @@ -219,8 +219,8 @@ export class InputsClientService implements OnModuleInit { switch (plugin) { case 'hubspot': return { - client_id: process.env.HUBSPOT_CLIENT_ID, - client_secret: process.env.HUBSPOT_CLIENT_SECRET, + client_id: process.env.HUBSPOT_CLIENT_ID || '', + client_secret: process.env.HUBSPOT_CLIENT_SECRET || '', }; } return {};