From 703bc310a70bc6e4a51e4668ab4c9bcdf1b04269 Mon Sep 17 00:00:00 2001 From: Davidson Gomes Date: Sun, 18 Feb 2024 11:57:44 -0300 Subject: [PATCH] fix: create instance baileys --- src/whatsapp/controllers/instance.controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/whatsapp/controllers/instance.controller.ts b/src/whatsapp/controllers/instance.controller.ts index 60e44281..08fa28e8 100644 --- a/src/whatsapp/controllers/instance.controller.ts +++ b/src/whatsapp/controllers/instance.controller.ts @@ -91,7 +91,7 @@ export class InstanceController { this.logger.verbose('checking duplicate token'); await this.authService.checkDuplicateToken(token); - if (!token && integration !== Integration.WHATSAPP_BUSINESS) { + if (!token && integration === Integration.WHATSAPP_BUSINESS) { throw new BadRequestException('token is required'); }