fix(core.gbapp): More information on bot creation.

This commit is contained in:
Rodrigo Rodriguez 2022-08-28 07:07:41 -03:00
parent 761caa0c61
commit 7e7fb277d7

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}`);