Browse Source

chore(core): Clean up redundant comment

Michael Bromley 6 years ago
parent
commit
5e728d77d7
1 changed files with 0 additions and 2 deletions
  1. 0 2
      packages/core/src/api/resolvers/entity/product-entity.resolver.ts

+ 0 - 2
packages/core/src/api/resolvers/entity/product-entity.resolver.ts

@@ -23,8 +23,6 @@ export class ProductEntityResolver {
         @Parent() product: Product,
         @Api() apiType: ApiType,
     ): Promise<Array<Translated<ProductVariant>>> {
-        // In the shop URL, the parent (Product type) does not have the "enabled"
-        // field, in which case we should filter out any non-enabled variants too.
         const variants = await this.productVariantService.getVariantsByProductId(ctx, product.id);
         return variants.filter(v => apiType === 'admin' ? true : v.enabled);
     }