Skip to content

Commit

Permalink
fix(core): Fix regression in ProductService.findOne not using relations
Browse files Browse the repository at this point in the history
Fixes #2443
  • Loading branch information
michaelbromley committed Oct 12, 2023
1 parent b917e62 commit 92cad43
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/core/src/service/services/product.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,7 @@ export class ProductService {
effectiveRelations.push('facetValues.facet');
}
const product = await this.connection.findOneInChannel(ctx, Product, productId, ctx.channelId, {
// relations: unique(effectiveRelations),
relations: {
facetValues: {
facet: true,
},
},
relations: unique(effectiveRelations),
where: {
deletedAt: IsNull(),
},
Expand Down

0 comments on commit 92cad43

Please sign in to comment.