diff --git a/src/product/product.service.ts b/src/product/product.service.ts index 061d23b..a850649 100644 --- a/src/product/product.service.ts +++ b/src/product/product.service.ts @@ -70,7 +70,16 @@ export class ProductService { 'product.priceHistory', 'current_price', 'current_price.partner_id is null', - ); + ) + .select(['product.id']) + .addSelect([ + 'product.name', + 'product.code', + 'sub_categories.name', + 'category.name', + ]); + // .addSelect('current_price.price') + // .addSelect('(current_price.price + current_price.mark_up_price) as mark_up_price'); if (subCategories != 'null' && subCategories) { baseQuery.andWhere('product.sub_categories_id = :id', {