fix(app): comment out boot instance creation and saving in legacy mode
Some checks failed
GBCI / build (push) Has been cancelled
Some checks failed
GBCI / build (push) Has been cancelled
This commit is contained in:
parent
97862e54a5
commit
8ffc62ed67
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