fix assert, and force methods to upper case (#1304)

* fix assert, and force methods to upper case

* add alert for updateCall errors

* lint

* handle missing method
This commit is contained in:
Sam Machin authored and GitHub committed 2025-07-30 08:32:15 -04:00
1 parent 94d43d4b70
commit b478e0ecd2
2 files changed
+14 -3

No files matched your search

+11
View File
@@ -1963,6 +1963,17 @@ Duration=${duration} `
}
} catch (err) {
this.logger.info({err, opts, callSid}, 'CallSession:updateCall - error updating call');
const {writeAlerts} = this.srf.locals;
try {
writeAlerts({
alert_type: 'error-updating-call',
account_sid: this.accountSid,
message: err.message,
target_sid: callSid
});
} catch (err) {
this.logger.error({err}, 'Error writing error-updating-call alert');
}
}
}