From 878ba5a8692c0658bbc8450b9f28ef9b5fd9eff1 Mon Sep 17 00:00:00 2001 From: Alan Mosko Date: Tue, 29 Aug 2023 18:57:31 -0300 Subject: [PATCH] =?UTF-8?q?Corre=C3=A7=C3=A3o=20de=20Erro?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ```This comparison appears to be unintentional because the types 'string' and 'number' have no overlap.``` --- src/config/env.config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/env.config.ts b/src/config/env.config.ts index db425c17..9c63b893 100644 --- a/src/config/env.config.ts +++ b/src/config/env.config.ts @@ -224,8 +224,8 @@ export class ConfigService { COLOR: process.env?.LOG_COLOR === 'true', BAILEYS: (process.env?.LOG_BAILEYS as LogBaileys) || 'error', }, - DEL_INSTANCE: isBooleanString(process.env?.DEL_INSTANCE) - ? process.env.DEL_INSTANCE === 5 + DEL_INSTANCE: process.env?.DEL_INSTANCE === 'true' + ? 5 : Number.parseInt(process.env.DEL_INSTANCE) || false, WEBHOOK: { GLOBAL: {