new(whatsapp.gblib): New provider.

This commit is contained in:
Rodrigo Rodriguez 2022-06-09 13:52:47 -03:00
parent 8d3ee08a9f
commit 562beca57b
3 changed files with 3 additions and 2 deletions

View file

@ -169,6 +169,7 @@ export class GBConfigService {
value = process.env[key];
}
return value;
}
}

View file

@ -332,7 +332,7 @@ export class GBMinService {
return;
}
let chatapi = GBConfigService.get('CHATAPI');
let chatapi = GBConfigService.get('CHATAPI') === 'true';
if (!chatapi) {
if (req.body.type !== 'message') {

View file

@ -87,7 +87,7 @@ export class WhatsappDirectLine extends GBService {
this.whatsappServiceKey = whatsappServiceKey;
this.whatsappServiceNumber = whatsappServiceNumber;
this.whatsappServiceUrl = whatsappServiceUrl;
this.chatapi = GBConfigService.get('CHATAPI');
this.chatapi = GBConfigService.get('CHATAPI') === 'true';
}
public static async asyncForEach(array, callback) {