Skip to content

Commit

Permalink
fixed voice recording and API error return
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Damm committed Jun 8, 2020
1 parent 29a83a8 commit d026516
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions controllers/tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports.createCallback = async (req, res) => {

res.status(200).json(response);
} catch (error) {
res.status(500).json(error);
res.status(500).json(res.convertErrorToJSON(error));
}
};

Expand Down Expand Up @@ -60,7 +60,7 @@ module.exports.createChat = async (req, res) => {

res.status(200).json(response);
} catch (error) {
res.status(500).json(error);
res.status(500).json(res.convertErrorToJSON(error));
}
};

Expand Down Expand Up @@ -91,6 +91,6 @@ module.exports.createVideo = async (req, res) => {

res.status(200).json(response);
} catch (error) {
res.status(500).json(error);
res.status(500).json(res.convertErrorToJSON(error));
}
};
2 changes: 1 addition & 1 deletion public/callcenter/WorkflowReservationController.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function WorkflowReservationController ($scope, $rootScope, $timeout, $interval,
return;
}

}, { 'EndConferenceOnExit': true, 'EndConferenceOnCustomerExit': true, 'ConferenceRecord': $scope.configuration.twilio.voice.recording });
}, { 'EndConferenceOnExit': true, 'EndConferenceOnCustomerExit': true });

}

Expand Down

0 comments on commit d026516

Please sign in to comment.