From df1c805ef00ce3b75bd7d0e8f9b65ed287b95bd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BAlio=20Paulillo?= Date: Tue, 3 Sep 2024 15:13:54 -0300 Subject: [PATCH] Fixes remoteJid attribution --- 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 47bdab35..dda9499f 100644 --- a/src/api/integrations/channel/meta/whatsapp.business.service.ts +++ b/src/api/integrations/channel/meta/whatsapp.business.service.ts @@ -351,7 +351,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,