From d337d7fec5ff9f4dc3c223aa57099bc274454f65 Mon Sep 17 00:00:00 2001 From: adriano Date: Wed, 18 Jun 2025 17:16:05 -0300 Subject: [PATCH] chore: solved merge details --- backend/controllers/crmController.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/backend/controllers/crmController.js b/backend/controllers/crmController.js index 70c48b1..453c6d3 100644 --- a/backend/controllers/crmController.js +++ b/backend/controllers/crmController.js @@ -153,12 +153,10 @@ const callJournaling = async (req, res) => { status: error.response.status, data: error.response.data, }) - } - } + } else if (error.request) { console.error('==================> callJournaling Nenhuma resposta recebida da API:', error.request) - } - } + } else { console.error('==================> callJournaling Erro ao configurar a request:', error.message) } @@ -227,8 +225,7 @@ const oauthCallBack = async (req, res) => { if (code) { console.log('xxxxxxxxxx passed') - - let crmOauth = await CRM.findOne({ 'crm.authentication.crmClientId': clientId, 'companyId': companyId }) + let crmOauth = await CRM.findOne({ 'crm.authentication.crmClientId': clientId, 'companyId': companyId }) crmOauth = crmOauth.toObject()