diff --git a/functions/lib/integration/exports/orders-to-horus.js b/functions/lib/integration/exports/orders-to-horus.js index 5d13f77..cbd1ff5 100644 --- a/functions/lib/integration/exports/orders-to-horus.js +++ b/functions/lib/integration/exports/orders-to-horus.js @@ -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,