fix(app): comment out boot instance creation and saving in legacy mode
This commit is contained in:
parent
7f7459b4e2
commit
dd1ff28028
1 changed files with 11 additions and 2 deletions
|
|
@ -492,8 +492,17 @@ export class GBMinService {
|
|||
// Not meta, multiples bots on root bot.
|
||||
|
||||
if (!req.body.object) {
|
||||
const to = req.body.To.replace(/whatsapp\:\+/gi, '');
|
||||
whatsAppDirectLine = WhatsappDirectLine.botsByNumber[to];
|
||||
|
||||
if (req.body.To){
|
||||
|
||||
const to = req.body.To.replace(/whatsapp\:\+/gi, '');
|
||||
whatsAppDirectLine = WhatsappDirectLine.botsByNumber[to];
|
||||
}
|
||||
else
|
||||
{
|
||||
const minBoot = GBServer.globals.minBoot as GBMinInstance;
|
||||
whatsAppDirectLine = minBoot.whatsAppDirectLine;
|
||||
}
|
||||
}
|
||||
|
||||
if (whatsAppDirectLine) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue