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

Closed
eltociear wants to merge 2540 commits from patch-1 into main
Showing only changes of commit 7e7fb277d7 - Show all commits

View file

@ -810,12 +810,11 @@ export class WhatsappDirectLine extends GBService {
} }
try { try {
GBLog.info(`Message [${msg}] is being sent to ${to}...`);
// tslint:disable-next-line: await-promise // tslint:disable-next-line: await-promise
if (this.provider !== "GeneralBots") { if (this.provider !== "GeneralBots") {
await request.post(options); await request.post(options);
} }
GBLog.info(`Message [${msg}] sent to ${to}.`);
} catch (error) { } catch (error) {
GBLog.error(`Error sending message to Whatsapp provider ${error.message}`); GBLog.error(`Error sending message to Whatsapp provider ${error.message}`);