fix: deploy
This commit is contained in:
		| @@ -19,6 +19,17 @@ export class ProductHistoryPriceService { | ||||
|     return result; | ||||
|   } | ||||
|  | ||||
|   async getAllActivePriceByProduct(productId: string) { | ||||
|     const result = await this.productHistoryPriceRepository | ||||
|       .createQueryBuilder('product_history_price') | ||||
|       .leftJoin('product_history_price.product', 'product') | ||||
|       .where({ product: productId }) | ||||
|       .andWhere('product_history_price.endDate IS NULL') | ||||
|       .getMany(); | ||||
|  | ||||
|     return result; | ||||
|   } | ||||
|  | ||||
|   async updateEndDate(idProduct: string) { | ||||
|     try { | ||||
|       const dataPrice = await this.productHistoryPriceRepository | ||||
|   | ||||
		Reference in New Issue
	
	Block a user