From 73cb190fb06f04dfbc61b5da9b9223aeb5876738 Mon Sep 17 00:00:00 2001 From: Timur Dogan Date: Mon, 14 Oct 2024 16:10:27 +0200 Subject: [PATCH] fix(core): Do not include deleted variants when indexing productInStock (#3110) Closes #3109 --- .../plugin/default-search-plugin/indexer/indexer.controller.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/core/src/plugin/default-search-plugin/indexer/indexer.controller.ts b/packages/core/src/plugin/default-search-plugin/indexer/indexer.controller.ts index b9ee716bb0..751bc01a46 100644 --- a/packages/core/src/plugin/default-search-plugin/indexer/indexer.controller.ts +++ b/packages/core/src/plugin/default-search-plugin/indexer/indexer.controller.ts @@ -481,6 +481,7 @@ export class IndexerController { loadEagerRelations: false, where: { productId: variant.productId, + deletedAt: IsNull(), }, }) .then(_variants =>