chore: solved merge details

pull/2/merge
adriano 2025-06-18 17:16:05 -03:00
parent c721cead8f
commit d337d7fec5
1 changed files with 3 additions and 6 deletions

View File

@ -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()