Skip to content

Commit

Permalink
fix: mimetype
Browse files Browse the repository at this point in the history
  • Loading branch information
jrCleber committed Oct 25, 2024
1 parent 6f0a79f commit 854a3a6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/whatsapp/services/whatsapp.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1394,9 +1394,7 @@ export class WAStartupService {
}

if (mediaMessage?.fileName) {
if (!mimetype) {
mimetype = mime.lookup(mediaMessage.fileName) as string;
}
mimetype = mime.lookup(mediaMessage.fileName) as string;
}

prepareMedia[mediaType].caption = mediaMessage?.caption;
Expand Down

0 comments on commit 854a3a6

Please sign in to comment.