Skip to content

Commit 07ad575

Browse files
committed
fix: Fixed issue that did not output base64 averages
1 parent da568e4 commit 07ad575

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

.DS_Store

0 Bytes
Binary file not shown.

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
* Adjustment in the saving of contacts, saving the information of the number and Jid
1919
* Update Dockerfile
2020
* If you pass empty events in create instance and set webhook it is understood as all
21+
* Fixed issue that did not output base64 averages
2122

2223
### Integrations
2324

src/config/logger.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ export class Logger {
7575
console.log(
7676
/*Command.UNDERSCORE +*/ Command.BRIGHT + Level[type],
7777
'[Evolution API]',
78+
Command.BRIGHT + Color[type],
7879
`v${packageJson.version}`,
7980
Command.BRIGHT + Color[type],
8081
process.pid.toString(),

src/whatsapp/services/whatsapp.service.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2178,6 +2178,14 @@ export class WAStartupService {
21782178
this.logger.verbose('File name: ' + mediaMessage.fileName);
21792179
}
21802180

2181+
if (mediaMessage.mediatype === 'image' && !mediaMessage.fileName) {
2182+
mediaMessage.fileName = 'image.png';
2183+
}
2184+
2185+
if (mediaMessage.mediatype === 'video' && !mediaMessage.fileName) {
2186+
mediaMessage.fileName = 'video.mp4';
2187+
}
2188+
21812189
let mimetype: string;
21822190

21832191
if (isURL(mediaMessage.media)) {

0 commit comments

Comments
 (0)