new(basic.gblib): GPT replacing ALLEN NLP Reading Comp.

This commit is contained in:
Rodrigo Rodriguez 2024-02-05 13:10:47 -03:00
parent 681d20c5fe
commit 070605bf4f

View file

@ -1034,7 +1034,6 @@ export class WhatsappDirectLine extends GBService {
}
const sec = new SecService();
let user = await sec.getUserFromSystemId(id);
// Tries to find if user wants to switch bots.
@ -1045,7 +1044,9 @@ export class WhatsappDirectLine extends GBService {
GBLog.info(`A WhatsApp mobile requested instance for: ${botId}.`);
let urlMin: any = GBServer.globals.minInstances.filter(p => p.instance.botId === botId)[0];
let user = await sec.ensureUser(urlMin, id, '', '', 'omnichannel', '','');
const botNumber = urlMin ? urlMin.core.getParam(urlMin.instance, 'Bot Number', null) : null;
if (botNumber && GBServer.globals.minBoot.botId !== urlMin.botId) {