From aea1a6135e67eb2c16865af14780bb529532f1de Mon Sep 17 00:00:00 2001 From: King-Hin Leung Date: Thu, 14 Sep 2023 15:09:58 +0200 Subject: [PATCH] Update sync.controller.js --- full-ingestion/src/controllers/sync.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/full-ingestion/src/controllers/sync.controller.js b/full-ingestion/src/controllers/sync.controller.js index 4e079d2..110b3a9 100644 --- a/full-ingestion/src/controllers/sync.controller.js +++ b/full-ingestion/src/controllers/sync.controller.js @@ -26,7 +26,7 @@ async function syncProducts(storeKey) { for (let productInCurrentStore of products) { let productToBeSynced = undefined; productToBeSynced = await getProductProjectionInStoreById( - storeKey, + storeKey, productInCurrentStore.id ).catch(async (error) => { // Product cannot be found in store assignment. Need to remove product in external search index