From ed6e28744e10b7c1013e9bb54364022cfb64075d Mon Sep 17 00:00:00 2001 From: Davidson Gomes Date: Mon, 10 Jun 2024 12:34:06 -0300 Subject: [PATCH] test: audio convertion --- src/api/services/channels/whatsapp.baileys.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/services/channels/whatsapp.baileys.service.ts b/src/api/services/channels/whatsapp.baileys.service.ts index 97ce67b5d..27a41f212 100644 --- a/src/api/services/channels/whatsapp.baileys.service.ts +++ b/src/api/services/channels/whatsapp.baileys.service.ts @@ -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();