From 344dafbb48ff3d938a4912e642793d88c21f8fec Mon Sep 17 00:00:00 2001 From: adriano Date: Wed, 18 Jun 2025 17:25:15 -0300 Subject: [PATCH] fix: removed undefined call object --- backend/controllers/crmController.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/backend/controllers/crmController.js b/backend/controllers/crmController.js index 453c6d3..821e263 100644 --- a/backend/controllers/crmController.js +++ b/backend/controllers/crmController.js @@ -145,9 +145,7 @@ const callJournaling = async (req, res) => { res.status(StatusCodes.OK).send() } catch (error) { // console.log(`[ERROR - ${new Date()}] Erro no Call Journaling`, error?.response?.data) - - Sentry.captureException(error) - + if (error.response) { console.error('==================> callJournaling Erro na resposta da API:', { status: error.response.status,