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'); }