From d098562ab5318a2ce6e549ffe05c9d1e87a75ffc Mon Sep 17 00:00:00 2001 From: Eddort Date: Mon, 25 Dec 2023 13:22:48 +0100 Subject: [PATCH] fix: config empty CL_API_URLS error --- src/common/config/config.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/config/config.service.ts b/src/common/config/config.service.ts index 98ca3aaf..709fc233 100644 --- a/src/common/config/config.service.ts +++ b/src/common/config/config.service.ts @@ -7,7 +7,7 @@ export class ConfigService extends ConfigServiceSource { * List of env variables that should be hidden */ public get secrets(): string[] { - return [this.get('SENTRY_DSN') ?? '', ...this.get('CL_API_URLS'), ...this.get('PROVIDERS_URLS')] + return [this.get('SENTRY_DSN') ?? '', ...(this.get('CL_API_URLS') || []), ...this.get('PROVIDERS_URLS')] .filter((v) => v) .map((v) => String(v)); }