Skip to content

Commit

Permalink
Refs #33177: Order Placing - get rid of redundant check
Browse files Browse the repository at this point in the history
  • Loading branch information
soarer1004 committed Oct 1, 2024
1 parent 47df57e commit 3d85e93
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/platform/magento2/o2m.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,6 @@ function processSingleOrder (orderData, config, job, done, customerToken = null,
logger.info(THREAD_ID + '> Sync between clientItems', clientItems.map((item) => { return { sku: item.sku, qty: item.qty, server_item_id: item.server_item_id, product_option: item.product_option } }))
logger.info(THREAD_ID + '> ... and serverItems', serverItems)

if (serverItems[0] && serverItems[0].quote_id !== cartId) {
return done({ code: 404, errorMessage: 'No such entity with cartId: ' + cartId });
}

if (!isClientAndServerItemsEquals(clientItems, serverItems)) {
return done({ code: 409, errorMessage: 'Cart items were changed' });
}
Expand Down

0 comments on commit 3d85e93

Please sign in to comment.