Skip to content

Commit

Permalink
test: audio convertion
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidsonGomes committed Jun 10, 2024
1 parent 28e5b2f commit ed6e287
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/services/channels/whatsapp.baileys.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2410,11 +2410,11 @@ export class BaileysStartupService extends ChannelStartupService {
.audioChannels(1)
.on('error', async function (error) {
console.log('error', error);
await fs.promises.unlink(tempAudioPath);
// await fs.promises.unlink(tempAudioPath);
if (error) reject(error);
})
.on('end', async function () {
await fs.promises.unlink(tempAudioPath);
// await fs.promises.unlink(tempAudioPath);
resolve(outputAudio);
})
.run();
Expand Down

0 comments on commit ed6e287

Please sign in to comment.