From 59383d5944b923d93e7d09a2bb9717db4c962254 Mon Sep 17 00:00:00 2001 From: Alan Cezar Date: Thu, 14 Nov 2024 09:08:23 -0300 Subject: [PATCH] fixed remoteJid --- src/api/integrations/channel/meta/whatsapp.business.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/integrations/channel/meta/whatsapp.business.service.ts b/src/api/integrations/channel/meta/whatsapp.business.service.ts index 1b1fada6..c847101a 100644 --- a/src/api/integrations/channel/meta/whatsapp.business.service.ts +++ b/src/api/integrations/channel/meta/whatsapp.business.service.ts @@ -352,7 +352,7 @@ export class BusinessStartupService extends ChannelStartupService { const size = result.headers['content-length'] || buffer.data.byteLength; - const fullName = join(`${this.instance.id}`, received.key.remoteJid, mediaType, fileName); + const fullName = join(`${this.instance.id}`, key.remoteJid, mediaType, fileName); await s3Service.uploadFile(fullName, buffer.data, size, { 'Content-Type': mimetype,