Skip to content

Commit 7767a26

Browse files
committed
test: chatwoot
1 parent 429d1ac commit 7767a26

File tree

2 files changed

+0
-32
lines changed

2 files changed

+0
-32
lines changed

src/whatsapp/services/chatwoot.service.ts

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1505,30 +1505,6 @@ export class ChatwootService {
15051505
}
15061506
}
15071507

1508-
// if (event === 'contacts.update') {
1509-
// this.logger.verbose('event contacts.update');
1510-
// const data = body;
1511-
1512-
// if (data.length) {
1513-
// this.logger.verbose('contacts found');
1514-
// for (const item of data) {
1515-
// const number = item.id.split('@')[0];
1516-
// const photo = item.profilePictureUrl || null;
1517-
// this.logger.verbose('find contact in chatwoot');
1518-
// const find = await this.findContact(instance, number);
1519-
1520-
// if (find) {
1521-
// this.logger.verbose('contact found');
1522-
1523-
// this.logger.verbose('update contact in chatwoot');
1524-
// await this.updateContact(instance, find.id, {
1525-
// avatar_url: photo,
1526-
// });
1527-
// }
1528-
// }
1529-
// }
1530-
// }
1531-
15321508
if (event === 'qrcode.updated') {
15331509
this.logger.verbose('event qrcode.updated');
15341510
if (body.statusCode === 500) {

src/whatsapp/services/whatsapp.service.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -953,14 +953,6 @@ export class WAStartupService {
953953
this.logger.verbose('Sending data to webhook in event CONTACTS_UPDATE');
954954
await this.sendDataWebhook(Events.CONTACTS_UPDATE, contactsRaw);
955955

956-
if (this.localChatwoot.enabled) {
957-
await this.chatwootService.eventWhatsapp(
958-
Events.CONTACTS_UPDATE,
959-
{ instanceName: this.instance.name },
960-
contactsRaw,
961-
);
962-
}
963-
964956
this.logger.verbose('Updating contacts in database');
965957
await this.repository.contact.update(
966958
contactsRaw,

0 commit comments

Comments
 (0)