rez_core 2.2.93 → 2.2.94

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": "2.2.93",
3
+ "version": "2.2.94",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -67,14 +67,29 @@ export class PopulateMetaService {
67
67
 
68
68
  if (!factoryData.length) continue;
69
69
 
70
- const transformedData = factoryData.map(
71
- ({ id, created_date, modified_date, ...rest }) => ({
72
- ...rest,
73
- organization_id,
74
- level_type: 'ORG',
75
- level_id: organization_id,
76
- }),
77
- );
70
+ let transformedData;
71
+
72
+ if (table === 'cr_attribute_master') {
73
+ transformedData = factoryData.map(
74
+ ({ id, created_date, modified_date, ...rest }) => ({
75
+ ...rest,
76
+ organization_id,
77
+ level_type: 'ORG',
78
+ level_id: organization_id,
79
+ is_unique: rest.is_unique == 1 ? true : false,
80
+ required: rest.required == 1 ? true : false,
81
+ }),
82
+ );
83
+ } else {
84
+ transformedData = factoryData.map(
85
+ ({ id, created_date, modified_date, ...rest }) => ({
86
+ ...rest,
87
+ organization_id,
88
+ level_type: 'ORG',
89
+ level_id: organization_id,
90
+ }),
91
+ );
92
+ }
78
93
 
79
94
  await this.dataSource
80
95
  .createQueryBuilder()
@@ -1,5 +0,0 @@
1
- {
2
- "recommendations": [
3
- "dbaeumer.vscode-eslint"
4
- ]
5
- }