Преглед изворни кода

fix(core): Do not include deleted variants when indexing productInStock (#3110)

Closes #3109
Timur Dogan пре 1 година
родитељ
комит
73cb190fb0

+ 1 - 0
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 =>