fix: use TTS_FAILURE alert type for synthAudio

This commit is contained in:
Quan HL
2023-03-08 19:36:23 +07:00
parent 2af76d94a6
commit aad49c6d3b

View File

@@ -143,7 +143,7 @@ class TaskSay extends Task {
span.end();
writeAlerts({
account_sid: cs.accountSid,
alert_type: AlertType.TTS_NOT_PROVISIONED,
alert_type: AlertType.TTS_FAILURE,
vendor,
detail: err.message
}).catch((err) => this.logger.info({err}, 'Error generating alert for tts failure'));