Skip to content

Commit 53bf7dc

Browse files
authored
chore: debugging bling order and statuses on export
1 parent 6b4cd0f commit 53bf7dc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

functions/lib/integration/export-order.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,10 @@ module.exports = ({ appSdk, storeId, auth }, blingStore, _blingDeposit, queueEnt
161161
const blingOrder = parseOrder(order, blingOrderNumber, blingStore, appData, customerIdBling, paymentTypeId, itemsBling, originalBlingOrder)
162162
const endpoint = `/pedidos/vendas${blingOrderId ? `/${blingOrderId}` : ''}`
163163
const method = blingOrderId ? 'put' : 'post'
164-
logger.info(`[${method}]: ${endpoint} for ${order._id}`)
164+
logger.info(`[${method}]: ${endpoint} for ${order._id}`, {
165+
blingOrder,
166+
blingStatuses,
167+
})
165168
return bling[method](endpoint, blingOrder)
166169
.then(async ({ data: { data } }) => {
167170
logger.info(`Bling Order ${method === 'put' ? 'upd' : 'cre'}ated successfully`)

0 commit comments

Comments
 (0)