Skip to content

Commit

Permalink
fix(core.gbapp): More information on bot creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Aug 28, 2022
1 parent 761caa0 commit 7e7fb27
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/whatsapp.gblib/services/WhatsappDirectLine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -810,12 +810,11 @@ export class WhatsappDirectLine extends GBService {
}

try {
GBLog.info(`Message [${msg}] is being sent to ${to}...`);
// tslint:disable-next-line: await-promise
if (this.provider !== "GeneralBots") {
await request.post(options);
}
GBLog.info(`Message [${msg}] sent to ${to}.`);

} catch (error) {
GBLog.error(`Error sending message to Whatsapp provider ${error.message}`);

Expand Down

0 comments on commit 7e7fb27

Please sign in to comment.