Skip to content

Commit a0a62b9

Browse files
Merge pull request #951 from lucas-tomasi/patch-1
Fix duplicate file upload
2 parents 29a1d99 + 2e43683 commit a0a62b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1992,7 +1992,7 @@ export class BaileysStartupService extends ChannelStartupService {
19921992

19931993
const mimetype = mime.getType(fileName).toString();
19941994

1995-
const fullName = join(`${this.instance.id}`, messageRaw.key.remoteJid, mediaType, fileName);
1995+
const fullName = join(`${this.instance.id}`, messageRaw.key.remoteJid, `${messageRaw.key.id}`, mediaType, fileName);
19961996

19971997
await s3Service.uploadFile(fullName, buffer, size.fileLength?.low, {
19981998
'Content-Type': mimetype,

0 commit comments

Comments
 (0)