Browse Source

fix(server): Fix Collection.productVariants resolver

Michael Bromley 6 years ago
parent
commit
c8cf76e48e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      server/src/service/services/product-variant.service.ts

+ 1 - 1
server/src/service/services/product-variant.service.ts

@@ -101,7 +101,7 @@ export class ProductVariantService {
                 channelId: ctx.channelId,
             })
             .leftJoin('productvariant.collections', 'collection')
-            .where('collection.id = :collectionId', { collectionId })
+            .andWhere('collection.id = :collectionId', { collectionId })
             .getManyAndCount()
             .then(async ([variants, totalItems]) => {
                 const items = variants.map(variant => {