fix: use TTS_FAILURE alert type for synthAudio (#278)

Co-authored-by: Quan HL <quanluuhoang8@gmail.com>
This commit is contained in:
Hoan Luu Huu
2023-03-08 19:42:06 +07:00
committed by GitHub
parent 2af76d94a6
commit 5ab24337b2

View File

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