fix: Removed await from webhook when sending a message

This commit is contained in:
craines 2023-11-14 16:47:25 -03:00
parent 8fe75cd210
commit 8b4cdf3b9b

View File

@ -2222,7 +2222,7 @@ export class WAStartupService {
this.logger.log(messageRaw);
this.logger.verbose('Sending data to webhook in event SEND_MESSAGE');
await this.sendDataWebhook(Events.SEND_MESSAGE, messageRaw);
this.sendDataWebhook(Events.SEND_MESSAGE, messageRaw);
if (this.localChatwoot.enabled && !isChatwoot) {
this.chatwootService.eventWhatsapp(Events.SEND_MESSAGE, { instanceName: this.instance.name }, messageRaw);