mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-13 15:14:49 -06:00
fix: adding media verification
This commit is contained in:
parent
5998fcf940
commit
fb41ab14e8
@ -979,6 +979,7 @@ export class BusinessStartupService extends ChannelStartupService {
|
||||
private async getIdMedia(mediaMessage: any) {
|
||||
const formData = new FormData();
|
||||
const media = mediaMessage.media || mediaMessage.audio;
|
||||
if (!media) throw new Error("Media or audio not found");
|
||||
|
||||
const fileStream = createReadStream(media);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user