chore: Uncommented catch info
parent
c4b2e8aac9
commit
db3da71b39
|
@ -384,15 +384,15 @@ const createTicket = async (req, res) => {
|
|||
mustContainProperties(req, ['companyId', 'crmPhone'])
|
||||
|
||||
const crmTicketLinks = await ticketCRM(companyId, crmPhone)
|
||||
// .catch(function (error) {
|
||||
.catch(function (error) {
|
||||
|
||||
// console.error(`Error on create ticket: companyID ${companyId} | crmPhone: ${crmPhone}`)
|
||||
// console.error(error?.response?.data)
|
||||
// console.error(error?.response?.status)
|
||||
// console.error(error?.response?.headers)
|
||||
console.error(`Error on create ticket: companyID ${companyId} | crmPhone: ${crmPhone}`)
|
||||
console.error(error?.response?.data)
|
||||
console.error(error?.response?.status)
|
||||
console.error(error?.response?.headers)
|
||||
|
||||
// throw new Error(`Error on create ticket: companyID ${companyId} | crmPhone: ${crmPhone}`)
|
||||
// })
|
||||
throw new Error(`Error on create ticket: companyID ${companyId} | crmPhone: ${crmPhone}`)
|
||||
})
|
||||
|
||||
return res.status(StatusCodes.OK).json({ crmTicketLinks })
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue