rez_core 2.1.21 → 2.1.22

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.21",
3
+ "version": "2.1.22",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -31,7 +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
+ 'org.type AS org_type',
35
35
 
36
36
  // Full brand columns
37
37
  'br.id AS brand_id',
@@ -46,7 +46,7 @@ export class SchoolRepository {
46
46
  'br.appcode AS brand_appcode',
47
47
  'br.level_id AS brand_level_id',
48
48
  'br.level_type AS brand_level_type',
49
- 'br.type AS type',
49
+ 'br.type AS brand_type',
50
50
 
51
51
  // Full school columns
52
52
  'sch.id AS school_id',
@@ -61,7 +61,7 @@ export class SchoolRepository {
61
61
  'sch.appcode AS school_appcode',
62
62
  'sch.level_id AS school_level_id',
63
63
  'sch.level_type AS school_level_type',
64
- 'sch.type AS type',
64
+ 'sch.type AS school_type',
65
65
  ])
66
66
  .from('cr_school', 'sch')
67
67
  .innerJoin('cr_brand', 'br', 'sch.brand_id = br.id')
@@ -72,7 +72,7 @@ export class SchoolRepository {
72
72
  const result = {};
73
73
 
74
74
  for (const row of data) {
75
- const { org_id, org_name, org_address, level_type, brand_id } = row;
75
+ const { org_id, org_name, org_address, org_type: type, brand_id } = row;
76
76
 
77
77
  // const {
78
78
  // school_id,ol_
@@ -83,7 +83,7 @@ export class SchoolRepository {
83
83
  org_id,
84
84
  org_name,
85
85
  org_address,
86
- level_type,
86
+ type,
87
87
  brands: {},
88
88
  };
89
89
  }