We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5998fcf commit fb41ab1Copy full SHA for fb41ab1
1 file changed
src/api/integrations/channel/meta/whatsapp.business.service.ts
@@ -979,6 +979,7 @@ export class BusinessStartupService extends ChannelStartupService {
979
private async getIdMedia(mediaMessage: any) {
980
const formData = new FormData();
981
const media = mediaMessage.media || mediaMessage.audio;
982
+ if (!media) throw new Error("Media or audio not found");
983
984
const fileStream = createReadStream(media);
985
0 commit comments