diff --git a/CHANGELOG.md b/CHANGELOG.md index 68ff4ef1f..452301c82 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,13 +3,13 @@ ### Fixed * Fixed the function of saving or not saving data in the database +* Resolve not find name # 2.0.1-beta (2024-07-17 17:01) ### Fixed * Resolved issue with Chatwoot not receiving messages sent by Typebot -* Fixed the function of saving or not saving data in the database # 2.0.0-beta (2024-07-14 17:00) diff --git a/src/api/services/channels/whatsapp.baileys.service.ts b/src/api/services/channels/whatsapp.baileys.service.ts index 87f7d8114..db27ac120 100644 --- a/src/api/services/channels/whatsapp.baileys.service.ts +++ b/src/api/services/channels/whatsapp.baileys.service.ts @@ -2669,7 +2669,7 @@ export class BaileysStartupService extends ChannelStartupService { return { exists: !!numberVerified?.exists, jid: numberJid, - name: contacts.find((c) => c.id === numberJid)?.pushName, + name: contacts.find((c) => c.remoteJid === numberJid)?.pushName, number: user.number, }; }),