Skip to content

Commit

Permalink
fix(export-orders): remove async request bling
Browse files Browse the repository at this point in the history
  • Loading branch information
wisley7l committed Oct 9, 2024
1 parent 6b668bc commit afdd171
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions functions/lib/integration/export-order.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,9 @@ module.exports = ({ appSdk, storeId, auth }, blingStore, _blingDeposit, queueEnt
: String(order.number)
}

const [customerIdBling, itemsBling] = await Promise.all([
getCustomerBling(bling, appData, order),
getProductsBling(bling, order)
])
const customerIdBling = await getCustomerBling(bling, appData, order)
const itemsBling = await getProductsBling(bling, order)

if (!customerIdBling) {
logger.info('Bling Customer not found')
throw new Error('Bling Customer not found')
Expand Down

0 comments on commit afdd171

Please sign in to comment.