write service_provider_sid with alerts

This commit is contained in:
Dave Horton
2022-09-07 23:51:40 +02:00
parent e90ef6bc70
commit 889257d7db
14 changed files with 85 additions and 175 deletions

View File

@@ -47,6 +47,7 @@ class TaskSay extends Task {
try {
if (!credentials) {
writeAlerts({
service_provider_sid: cs.serviceProviderSid,
account_sid: cs.accountSid,
alert_type: AlertType.TTS_NOT_PROVISIONED,
vendor
@@ -92,6 +93,7 @@ class TaskSay extends Task {
this.logger.info({err}, 'Error synthesizing tts');
span.end();
writeAlerts({
service_provider_sid: cs.serviceProviderSid,
account_sid: cs.accountSid,
alert_type: AlertType.TTS_NOT_PROVISIONED,
vendor,