Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:EvolutionAPI/evolution-api-lite …
Browse files Browse the repository at this point in the history
…into develop
  • Loading branch information
DavidsonGomes committed Jan 10, 2025
2 parents d4e8cb9 + b4b13d3 commit fc231c8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2188,9 +2188,9 @@ export class BaileysStartupService extends ChannelStartupService {

if (file?.buffer) {
mediaData.audio = file.buffer.toString('base64');
} else {
console.error('File or buffer is undefined.');
throw new Error('File or buffer is undefined.');
} else if (!isURL(data.audio)) {
console.error('Invalid file or audio source');
throw new BadRequestException('File buffer or URL audio is required');
}

if (!data?.encoding && data?.encoding !== false) {
Expand Down

0 comments on commit fc231c8

Please sign in to comment.