chore: Uncommented catch info

master
adriano 2025-04-09 15:45:54 -03:00
parent c4b2e8aac9
commit db3da71b39
1 changed files with 7 additions and 7 deletions

View File

@ -384,15 +384,15 @@ const createTicket = async (req, res) => {
mustContainProperties(req, ['companyId', 'crmPhone']) mustContainProperties(req, ['companyId', 'crmPhone'])
const crmTicketLinks = await ticketCRM(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 on create ticket: companyID ${companyId} | crmPhone: ${crmPhone}`)
// console.error(error?.response?.data) console.error(error?.response?.data)
// console.error(error?.response?.status) console.error(error?.response?.status)
// console.error(error?.response?.headers) 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 }) return res.status(StatusCodes.OK).json({ crmTicketLinks })
} }