fix(basic.gblib): update ChatServices.ts #420

Closed
eltociear wants to merge 2540 commits from patch-1 into main
3 changed files with 3 additions and 2 deletions
Showing only changes of commit 562beca57b - Show all commits

View file

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

View file

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

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 = GBConfigService.get('CHATAPI'); this.chatapi = GBConfigService.get('CHATAPI') === 'true';
} }
public static async asyncForEach(array, callback) { public static async asyncForEach(array, callback) {