chore: solved merge details
parent
c721cead8f
commit
d337d7fec5
|
@ -154,11 +154,9 @@ const callJournaling = async (req, res) => {
|
||||||
data: error.response.data,
|
data: error.response.data,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else if (error.request) {
|
else if (error.request) {
|
||||||
console.error('==================> callJournaling Nenhuma resposta recebida da API:', error.request)
|
console.error('==================> callJournaling Nenhuma resposta recebida da API:', error.request)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else {
|
else {
|
||||||
console.error('==================> callJournaling Erro ao configurar a request:', error.message)
|
console.error('==================> callJournaling Erro ao configurar a request:', error.message)
|
||||||
}
|
}
|
||||||
|
@ -228,7 +226,6 @@ const oauthCallBack = async (req, res) => {
|
||||||
|
|
||||||
console.log('xxxxxxxxxx passed')
|
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 })
|
let crmOauth = await CRM.findOne({ 'crm.authentication.crmClientId': clientId, 'companyId': companyId })
|
||||||
|
|
||||||
crmOauth = crmOauth.toObject()
|
crmOauth = crmOauth.toObject()
|
||||||
|
|
Loading…
Reference in New Issue