Skip to content

Commit 59fd00f

Browse files
committed
fix: mimetype of videos video
`application/mp4` to `video/mp4`
1 parent 810b6c4 commit 59fd00f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/whatsapp/services/whatsapp.service.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1586,6 +1586,9 @@ export class WAStartupService {
15861586

15871587
if (mediaMessage?.fileName) {
15881588
mimetype = mime.lookup(mediaMessage.fileName) as string;
1589+
if(mimetype === 'application/mp4') {
1590+
mimetype = 'video/mp4';
1591+
}
15891592
}
15901593

15911594
prepareMedia[mediaType].caption = mediaMessage?.caption;

0 commit comments

Comments
 (0)