mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-24 17:38:40 -06:00
Fix: Corrects the generation of the hash variable name, error when generating with white spaces and special characters.
This commit is contained in:
parent
45e03d87c7
commit
933d787108
@ -2844,7 +2844,8 @@ export class WAStartupService {
|
|||||||
this.logger.verbose('Processing audio');
|
this.logger.verbose('Processing audio');
|
||||||
let tempAudioPath: string;
|
let tempAudioPath: string;
|
||||||
let outputAudio: string;
|
let outputAudio: string;
|
||||||
|
|
||||||
|
number = number.replace(/\D/g, "");
|
||||||
const hash = `${number}-${new Date().getTime()}`;
|
const hash = `${number}-${new Date().getTime()}`;
|
||||||
this.logger.verbose('Hash to audio name: ' + hash);
|
this.logger.verbose('Hash to audio name: ' + hash);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user