mirror of
https://github.com/SyncrowIOT/backend.git
synced 2026-10-24 14:37:55 +00:00
fixed uuid
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user