Skip to content

Commit 51a3710

Browse files
authored
Merge branch 'EvolutionAPI:v2.0.0' into v2.0.0
2 parents 0aa8150 + aac8d44 commit 51a3710

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
### Fixed
44

55
* Fixed prefilledVariables in startTypebot
6+
* Fix duplicate file upload
67

78
# 2.1.2 (2024-10-06 10:09)
89

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

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

20072007
const mimetype = mime.getType(fileName).toString();
20082008

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

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

0 commit comments

Comments
 (0)