Merge branch 'EvolutionAPI:v2.0.0' into v2.0.0

This commit is contained in:
Felipe Medeiros 2024-10-07 10:55:41 -03:00 committed by GitHub
commit 51a3710b46
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@
### Fixed ### Fixed
* Fixed prefilledVariables in startTypebot * Fixed prefilledVariables in startTypebot
* Fix duplicate file upload
# 2.1.2 (2024-10-06 10:09) # 2.1.2 (2024-10-06 10:09)

View File

@ -2006,7 +2006,7 @@ export class BaileysStartupService extends ChannelStartupService {
const mimetype = mime.getType(fileName).toString(); const mimetype = mime.getType(fileName).toString();
const fullName = join(`${this.instance.id}`, messageRaw.key.remoteJid, mediaType, fileName); const fullName = join(`${this.instance.id}`, messageRaw.key.remoteJid, `${messageRaw.key.id}`, mediaType, fileName);
await s3Service.uploadFile(fullName, buffer, size.fileLength?.low, { await s3Service.uploadFile(fullName, buffer, size.fileLength?.low, {
'Content-Type': mimetype, 'Content-Type': mimetype,