We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d5c2cfb + bfba702 commit 16daf9bCopy full SHA for 16daf9b
src/api/integrations/channel/meta/whatsapp.business.service.ts
@@ -1100,7 +1100,11 @@ export class BusinessStartupService extends ChannelStartupService {
1100
1101
if (file?.buffer) {
1102
mediaData.audio = file.buffer.toString('base64');
1103
- } else {
+ }
1104
+ else if(isURL(mediaData.audio)){
1105
+ mediaData.audio = mediaData.audio
1106
1107
+ else {
1108
console.error('El archivo no tiene buffer o file es undefined');
1109
throw new Error('File or buffer is undefined');
1110
}
0 commit comments