fix(calls): fix some bugs encountered during refactor

This commit is contained in:
Taso committed 2021-07-28 14:26:01 -04:00
1 parent 10c5e97088
commit af6e291368
9 files changed
+15 -15

No files matched your search

+2 -2
View File
@@ -18,7 +18,7 @@ onNetPromise<InitializeCallDTO, StartCallEventData>(CallEvents.INITIALIZE_CALL,
});
});
onNetTyped(CallEvents.ACCEPT_CALL, (transmitterNumber: string) => {
onNetTyped<TransmitterNumDTO>(CallEvents.ACCEPT_CALL, ({ transmitterNumber }) => {
const src = getSource();
CallService.handleAcceptCall(src, transmitterNumber).catch((e) =>
callLogger.error(
@@ -41,7 +41,7 @@ onNetTyped<TransmitterNumDTO>(CallEvents.REJECTED, (data) => {
onNetPromise<EndCallDTO, void>(CallEvents.END_CALL, (reqObj, resp) => {
CallService.handleEndCall(reqObj, resp).catch((e) => {
callLogger.error(
`Error occured in end call event (${reqObj.data.transmitter}), Error: ${e.message}`,
`Error occured in end call event (${reqObj.data.transmitterNumber}), Error: ${e.message}`,
);
resp({ status: 'error', errorMsg: 'SERVER_ERROR' });
});