conversion of audios for sending recorded audio, now it is possible to send mp3 audios and not just ogg

This commit is contained in:
Davidson Gomes
2023-06-19 22:28:39 -03:00
parent 631dd01c92
commit b8fa43296d
9 changed files with 36 additions and 17 deletions

View File

@@ -118,7 +118,7 @@ export class InstanceController {
public async connectToWhatsapp({ instanceName }: InstanceDto) {
try {
const instance = this.waMonitor.waInstances[instanceName];
const state = instance?.connectionStatus?.state ?? null;
const state = instance?.connectionStatus?.state;
switch (state) {
case 'close':
@@ -131,7 +131,7 @@ export class InstanceController {
return await this.connectionState({ instanceName });
}
} catch (error) {
this.logger.log(error);
this.logger.error(error);
}
}