fix(all): Fix user switching on a single chip.
This commit is contained in:
parent
bdee92f128
commit
77920f640d
1 changed files with 2 additions and 2 deletions
|
@ -1151,7 +1151,7 @@ export class WhatsappDirectLine extends GBService {
|
|||
} else {
|
||||
// User wants to switch bots.
|
||||
|
||||
if (toSwitchMin !== undefined) {
|
||||
if (toSwitchMin) {
|
||||
GBLog.info(`Switching bots from ${botId} to ${toSwitchMin.botId}...`);
|
||||
|
||||
// So gets the new bot instance information and prepares to
|
||||
|
@ -1203,7 +1203,7 @@ export class WhatsappDirectLine extends GBService {
|
|||
}
|
||||
}
|
||||
|
||||
t.received(req, res);
|
||||
await t.received(req, res);
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
|
|
Loading…
Add table
Reference in a new issue