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
2025-07-30 13:32:15 +01:00
committed by GitHub
parent 94d43d4b70
commit b478e0ecd2
2 changed files with 14 additions and 3 deletions

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');
}
}
}