fix: Bug fix when connecting whatsapp does not send confirmation message

This commit is contained in:
Davidson Gomes
2023-07-18 12:47:03 -03:00
parent 44bf39f7b7
commit 7cacf7bbaf
3 changed files with 14 additions and 1 deletions

View File

@@ -1457,7 +1457,8 @@ export class ChatwootService {
if (event === 'connection.update') {
this.logger.verbose('event connection.update');
if (body.state === 'open') {
console.log('connection.update', body);
if (body.status === 'open') {
const msgConnection = `🚀 Conexão realizada com sucesso!`;
this.logger.verbose('send message to chatwoot');