mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-16 04:02:54 -06:00
fix: Fixed issue that did not output base64 averages
This commit is contained in:
parent
da568e4ea5
commit
07ad5756eb
@ -18,6 +18,7 @@
|
|||||||
* Adjustment in the saving of contacts, saving the information of the number and Jid
|
* Adjustment in the saving of contacts, saving the information of the number and Jid
|
||||||
* Update Dockerfile
|
* Update Dockerfile
|
||||||
* If you pass empty events in create instance and set webhook it is understood as all
|
* If you pass empty events in create instance and set webhook it is understood as all
|
||||||
|
* Fixed issue that did not output base64 averages
|
||||||
|
|
||||||
### Integrations
|
### Integrations
|
||||||
|
|
||||||
|
@ -75,6 +75,7 @@ export class Logger {
|
|||||||
console.log(
|
console.log(
|
||||||
/*Command.UNDERSCORE +*/ Command.BRIGHT + Level[type],
|
/*Command.UNDERSCORE +*/ Command.BRIGHT + Level[type],
|
||||||
'[Evolution API]',
|
'[Evolution API]',
|
||||||
|
Command.BRIGHT + Color[type],
|
||||||
`v${packageJson.version}`,
|
`v${packageJson.version}`,
|
||||||
Command.BRIGHT + Color[type],
|
Command.BRIGHT + Color[type],
|
||||||
process.pid.toString(),
|
process.pid.toString(),
|
||||||
|
@ -2178,6 +2178,14 @@ export class WAStartupService {
|
|||||||
this.logger.verbose('File name: ' + mediaMessage.fileName);
|
this.logger.verbose('File name: ' + mediaMessage.fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mediaMessage.mediatype === 'image' && !mediaMessage.fileName) {
|
||||||
|
mediaMessage.fileName = 'image.png';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (mediaMessage.mediatype === 'video' && !mediaMessage.fileName) {
|
||||||
|
mediaMessage.fileName = 'video.mp4';
|
||||||
|
}
|
||||||
|
|
||||||
let mimetype: string;
|
let mimetype: string;
|
||||||
|
|
||||||
if (isURL(mediaMessage.media)) {
|
if (isURL(mediaMessage.media)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user