File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
src/api/integrations/channel Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -75,8 +75,6 @@ export class ChannelController {
7575 data . prismaRepository ,
7676 data . cache ,
7777 data . chatwootCache ,
78- data . baileysCache ,
79- data . providerFiles ,
8078 ) ;
8179 }
8280
Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ import axios from 'axios';
2020import { isBase64 , isURL } from 'class-validator' ;
2121import EventEmitter2 from 'eventemitter2' ;
2222import FormData from 'form-data' ;
23- import mime from 'mime' ;
2423import mimeTypes from 'mime-types' ;
2524import { join } from 'path' ;
2625import { v4 } from 'uuid' ;
@@ -672,9 +671,9 @@ export class EvolutionStartupService extends ChannelStartupService {
672671 } ;
673672
674673 if ( isURL ( audio ) ) {
675- mimetype = mime . getType ( audio ) ;
674+ mimetype = mimeTypes . lookup ( audio ) . toString ( ) ;
676675 } else {
677- mimetype = mime . getType ( prepareMedia . fileName ) ;
676+ mimetype = mimeTypes . lookup ( prepareMedia . fileName ) . toString ( ) ;
678677 }
679678
680679 prepareMedia . mimetype = mimetype ;
You can’t perform that action at this time.
0 commit comments