fixed uuid

This commit is contained in:
hannathkadher
2024-11-21 09:14:29 +04:00
parent c0b8e0d779
commit 7d627029c4
@@ -80,10 +80,10 @@ export class SpaceProductService {
const productIds = products.map((p) => p.productId);
const productEntities = await this.productRepository.find({
where: { prodId: In(productIds) },
where: { uuid: In(productIds) },
});
return new Map(productEntities.map((p) => [p.prodId, p]));
return new Map(productEntities.map((p) => [p.uuid, p]));
} catch (error) {
console.error('Error fetching product entities:', error);
throw new HttpException(