rez_core 6.5.66 → 6.5.67

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rez_core",
3
- "version": "6.5.66",
3
+ "version": "6.5.67",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -499,7 +499,7 @@ export class FilterService {
499
499
  console.log(`📦 [FilterService] Fetched ${entity_list.length} records`);
500
500
 
501
501
  const dateAttributes = Object.entries(attributeMetaMap)
502
- .filter(([_, attr]) => attr.data_type === 'date')
502
+ .filter(([_, attr]) => attr.element_type === 'date')
503
503
  .map(([key]) => key);
504
504
 
505
505
  const formatDate = (dateStr: string | null): string | null =>
@@ -78,7 +78,7 @@ export class AttributeMasterRepository {
78
78
  return {
79
79
  'label': attribute.name,
80
80
  'value': attribute.attribute_key,
81
- 'data_type': attribute.data_type,
81
+ 'element_type': attribute.element_type,
82
82
  'data_source_list': attribute.datasource_list,
83
83
  };
84
84
  });
@@ -93,7 +93,7 @@ export class EntityMasterRepository {
93
93
  const attributes = await this.attributeMasterRepository.find({
94
94
  where: {
95
95
  mapped_entity_type: entity_type,
96
- data_type: 'DATE',
96
+ element_type: 'date',
97
97
  enterprise_id,
98
98
  },
99
99
  });
@@ -547,7 +547,7 @@ export class EntityDynamicService extends EntityServiceImpl{
547
547
  .map((attr) => `${attr.attribute_key}`)
548
548
  .join(', ');
549
549
  const selectQuery = `SELECT ${columns}
550
- FROM ${dataSource}
550
+ FROM ${this.schema}.${dataSource}
551
551
  WHERE id = $1`;
552
552
 
553
553
  const result = await this.entityManager.query(selectQuery, [id]);