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

This commit is contained in:
Rodrigo Rodriguez 2022-07-07 12:36:08 -03:00
parent 2eb9057473
commit 975e7a1d89

View file

@ -87,7 +87,7 @@ export class WhatsappDirectLine extends GBService {
this.whatsappServiceKey = whatsappServiceKey; this.whatsappServiceKey = whatsappServiceKey;
this.whatsappServiceNumber = whatsappServiceNumber; this.whatsappServiceNumber = whatsappServiceNumber;
this.whatsappServiceUrl = whatsappServiceUrl; this.whatsappServiceUrl = whatsappServiceUrl;
this.chatapi = whatsappServiceNumber.indexOf(';') > -1 ? true : false; this.chatapi = whatsappServiceNumber.indexOf(';') > -1 ? false : true;
} }
public static async asyncForEach(array, callback) { public static async asyncForEach(array, callback) {