Skip to content

Commit

Permalink
fix(export-order): fix add installments
Browse files Browse the repository at this point in the history
  • Loading branch information
wisley7l committed May 27, 2024
1 parent aee043c commit 734d767
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions functions/lib/integration/exports/orders-to-horus.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,10 +317,12 @@ module.exports = async ({ appSdk, storeId, auth }, orderId, opts = {}) => {

const params = new url.URLSearchParams(body)
const endpoint = `/InsVencPedidoVenda?${params.toString()}`
console.log('>> try installments: ', endpoint)
console.log('>> try is new: ', isNew, ' installments: ', endpoint)

// await requestHorus(horus, endpoint, 'POST')
// .catch(console.error)
if (isNew) {
await requestHorus(horus, endpoint, 'POST')
.catch(console.error)
}

return {
order,
Expand Down

0 comments on commit 734d767

Please sign in to comment.