fix(all): Fix user switching on a single chip.

This commit is contained in:
Rodrigo Rodriguez 2023-09-09 21:36:00 -03:00
parent 12899170fd
commit ae4f7c52df

View file

@ -318,7 +318,7 @@ export class WhatsappDirectLine extends GBService {
// If there is a number specified, checks if it // If there is a number specified, checks if it
// is related to a custom bot and reroutes immediately. // is related to a custom bot and reroutes immediately.
if (newThis && newThis.min.botId !== GBServer.globals.minBoot.botId) { if (newThis !== this && newThis.min.botId !== GBServer.globals.minBoot.botId) {
await newThis.received(req, res); await newThis.received(req, res);
return; return;