mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-26 10:28:38 -06:00
Update whatsapp.service.ts
This commit is contained in:
parent
f9986ef3bb
commit
932b73e70f
@ -2321,7 +2321,7 @@ export class WAStartupService {
|
|||||||
let mimetype: string;
|
let mimetype: string;
|
||||||
|
|
||||||
// novo critério para adotar mimetype quando nao está presente na url e no filenemae - inicio
|
// novo critério para adotar mimetype quando nao está presente na url e no filenemae - inicio
|
||||||
if (isURL(mediaMessage.media || mediaMessage.fileName) {
|
if (isURL(mediaMessage.media || mediaMessage.fileName !== "") {
|
||||||
if (isURL(mediaMessage.media)) {
|
if (isURL(mediaMessage.media)) {
|
||||||
mimetype = getMIMEType(mediaMessage.media);
|
mimetype = getMIMEType(mediaMessage.media);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user