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

This commit is contained in:
Rodrigo Rodriguez 2022-07-09 11:24:06 -03:00
parent cad03e145e
commit 844004fa01

View file

@ -132,7 +132,7 @@ export class WhatsappDirectLine extends GBService {
let phoneId = this.whatsappServiceNumber.split(';')[0];
let productId = this.whatsappServiceNumber.split(';')[1]
let url = `${this.INSTANCE_URL}/${phoneId}/config`;
let url = `${this.INSTANCE_URL}/${productId}/${phoneId}/config`;
WhatsappDirectLine.phones[phoneId] = this.botId;
options = {