Fix: Corrects the generation of the hash variable name, error when generating with white spaces and special characters.

This commit is contained in:
Alan Martines 2024-01-10 09:27:25 -04:00
parent 45e03d87c7
commit 933d787108

View File

@ -2844,7 +2844,8 @@ export class WAStartupService {
this.logger.verbose('Processing audio');
let tempAudioPath: string;
let outputAudio: string;
number = number.replace(/\D/g, "");
const hash = `${number}-${new Date().getTime()}`;
this.logger.verbose('Hash to audio name: ' + hash);