From 12899170fd3d01bf17bf9ceb1d50fef43a842807 Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Sat, 9 Sep 2023 16:44:53 -0300 Subject: [PATCH] fix(all): Fix user switching on a single chip. --- packages/whatsapp.gblib/services/WhatsappDirectLine.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/whatsapp.gblib/services/WhatsappDirectLine.ts b/packages/whatsapp.gblib/services/WhatsappDirectLine.ts index eab3d913..f01e669a 100644 --- a/packages/whatsapp.gblib/services/WhatsappDirectLine.ts +++ b/packages/whatsapp.gblib/services/WhatsappDirectLine.ts @@ -318,7 +318,7 @@ export class WhatsappDirectLine extends GBService { // If there is a number specified, checks if it // is related to a custom bot and reroutes immediately. - if (newThis && newThis.min.botId !== this.min.botId) { + if (newThis && newThis.min.botId !== GBServer.globals.minBoot.botId) { await newThis.received(req, res); return;