rez_core 2.1.19 → 2.1.21

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.1.19",
3
+ "version": "2.1.21",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -31,6 +31,7 @@ export class SchoolRepository {
31
31
  'org.id AS org_id',
32
32
  'org.name AS org_name',
33
33
  'org.address AS org_address',
34
+ 'org.type AS type',
34
35
 
35
36
  // Full brand columns
36
37
  'br.id AS brand_id',
@@ -40,16 +41,12 @@ export class SchoolRepository {
40
41
  'br.parent_type AS brand_parent_type',
41
42
  'br.parent_id AS brand_parent_id',
42
43
  'br.code AS brand_code',
43
- 'br.created_by AS brand_created_by',
44
- 'br.created_date AS brand_created_date',
45
- 'br.modified_by AS brand_modified_by',
46
- 'br.modified_date AS brand_modified_date',
47
44
  'br.enterprise_id AS brand_enterprise_id',
48
45
  'br.organization_id AS brand_organization_id',
49
46
  'br.appcode AS brand_appcode',
50
47
  'br.level_id AS brand_level_id',
51
48
  'br.level_type AS brand_level_type',
52
- 'br.type AS brand_type',
49
+ 'br.type AS type',
53
50
 
54
51
  // Full school columns
55
52
  'sch.id AS school_id',
@@ -59,16 +56,12 @@ export class SchoolRepository {
59
56
  'sch.parent_type AS school_parent_type',
60
57
  'sch.parent_id AS school_parent_id',
61
58
  'sch.code AS school_code',
62
- 'sch.created_by AS school_created_by',
63
- 'sch.created_date AS school_created_date',
64
- 'sch.modified_by AS school_modified_by',
65
- 'sch.modified_date AS school_modified_date',
66
59
  'sch.enterprise_id AS school_enterprise_id',
67
60
  'sch.organization_id AS school_organization_id',
68
61
  'sch.appcode AS school_appcode',
69
62
  'sch.level_id AS school_level_id',
70
63
  'sch.level_type AS school_level_type',
71
- 'sch.type AS school_type',
64
+ 'sch.type AS type',
72
65
  ])
73
66
  .from('cr_school', 'sch')
74
67
  .innerJoin('cr_brand', 'br', 'sch.brand_id = br.id')
@@ -79,29 +72,18 @@ export class SchoolRepository {
79
72
  const result = {};
80
73
 
81
74
  for (const row of data) {
82
- const {
83
- org_id,
84
- org_name,
85
- org_address,
75
+ const { org_id, org_name, org_address, level_type, brand_id } = row;
86
76
 
87
- brand_id,
88
- ...brandFields
89
-
90
- // include only brand fields prefixed with brand_
91
- } = row;
92
-
93
- const {
94
- school_id,
95
- ...schoolFields
96
-
97
- // include only school fields prefixed with school_
98
- } = row;
77
+ // const {
78
+ // school_id,ol_
79
+ // } = row;
99
80
 
100
81
  if (!result[org_id]) {
101
82
  result[org_id] = {
102
83
  org_id,
103
84
  org_name,
104
85
  org_address,
86
+ level_type,
105
87
  brands: {},
106
88
  };
107
89
  }