rez_core 2.1.72 → 2.1.73
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
|
@@ -34,11 +34,15 @@ export class SchoolRepository {
|
|
|
34
34
|
.andWhere('urm.level_type = :levelType', { levelType: 'ORG' })
|
|
35
35
|
.getRawMany();
|
|
36
36
|
|
|
37
|
+
console.log('hasOrgAccess before', hasOrgAccess);
|
|
38
|
+
|
|
37
39
|
let currentORGLevel_id = hasOrgAccess[0]?.urm_level_id;
|
|
38
40
|
if (hasOrgAccess[0].urm_level_id == 1) {
|
|
39
41
|
currentORGLevel_id = org_id;
|
|
40
42
|
}
|
|
41
43
|
|
|
44
|
+
console.log('currentORGLevel_id', currentORGLevel_id);
|
|
45
|
+
|
|
42
46
|
if (hasOrgAccess.length > 0) {
|
|
43
47
|
const schools = await this.dataSource
|
|
44
48
|
.createQueryBuilder()
|
|
@@ -61,6 +65,8 @@ export class SchoolRepository {
|
|
|
61
65
|
.where('org.id = :orgId', { orgId: currentORGLevel_id })
|
|
62
66
|
.getRawMany();
|
|
63
67
|
|
|
68
|
+
console.log('schools', schools);
|
|
69
|
+
|
|
64
70
|
const result = {};
|
|
65
71
|
for (const row of schools) {
|
|
66
72
|
const {
|