Skip to content

Commit 703bc31

Browse files
committed
fix: create instance baileys
1 parent 4caecfa commit 703bc31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/whatsapp/controllers/instance.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export class InstanceController {
9191
this.logger.verbose('checking duplicate token');
9292
await this.authService.checkDuplicateToken(token);
9393

94-
if (!token && integration !== Integration.WHATSAPP_BUSINESS) {
94+
if (!token && integration === Integration.WHATSAPP_BUSINESS) {
9595
throw new BadRequestException('token is required');
9696
}
9797

0 commit comments

Comments
 (0)