bugfix: customerData in webhooks was being snake-cased

This commit is contained in:
Dave Horton
2021-08-11 10:47:10 -04:00
parent 649b3d5715
commit 7c629e6faf

View File

@@ -909,7 +909,7 @@ class CallSession extends Emitter {
this.callInfo.updateCallStatus(callStatus, sipStatus);
if (typeof duration === 'number') this.callInfo.duration = duration;
try {
this.notifier.request(this.call_status_hook, this.callInfo);
this.notifier.request(this.call_status_hook, this.callInfo.toJSON());
} catch (err) {
this.logger.info(err, `CallSession:_notifyCallStatusChange error sending ${callStatus} ${sipStatus}`);
}