new(whatsapp.gblib): Multiple providers can be loaded at once.

This commit is contained in:
Rodrigo Rodriguez 2022-07-09 01:14:24 -03:00
parent 4f93b626d1
commit 423cf368ca

View file

@ -388,7 +388,7 @@ export class GBMinService {
GBLog.info(`A WhatsApp mobile requested instance for: ${botId}.`);
let urlMin: any = GBServer.globals.minInstances.filter
(p => p.instance.botId === botId);
(p => p.instance.botId === botId)[0];
const botNumber = urlMin.core.getParam(urlMin.instance, 'Bot Number', null);