chore: solved merge details
parent
c721cead8f
commit
d337d7fec5
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue