Преглед на файлове

fix(server): Fix Collection.productVariants resolver

Michael Bromley преди 7 години
родител
ревизия
c8cf76e48e
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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 => {