new(whatsapp.gblib): New provider.
This commit is contained in:
parent
8d3ee08a9f
commit
562beca57b
3 changed files with 3 additions and 2 deletions
|
@ -169,6 +169,7 @@ export class GBConfigService {
|
|||
value = process.env[key];
|
||||
}
|
||||
|
||||
|
||||
return value;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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') {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue