From d026516905160eaa969bfaa409850aafd226c3a1 Mon Sep 17 00:00:00 2001 From: Matthias Damm Date: Mon, 8 Jun 2020 13:45:13 +0200 Subject: [PATCH] fixed voice recording and API error return --- controllers/tasks.js | 6 +++--- public/callcenter/WorkflowReservationController.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/controllers/tasks.js b/controllers/tasks.js index d28ee6e..ca6264b 100644 --- a/controllers/tasks.js +++ b/controllers/tasks.js @@ -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)); } }; @@ -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)); } }; @@ -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)); } }; \ No newline at end of file diff --git a/public/callcenter/WorkflowReservationController.js b/public/callcenter/WorkflowReservationController.js index ac31045..784245b 100644 --- a/public/callcenter/WorkflowReservationController.js +++ b/public/callcenter/WorkflowReservationController.js @@ -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 }); }