rez_core 2.2.1 → 2.2.2

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.1",
3
+ "version": "2.2.2",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -97,7 +97,16 @@ export class ListMasterService {
97
97
  inactiveIdsArray?: number[],
98
98
  loggedInUser?: UserData,
99
99
  ) {
100
- console.log(sourceList, 'sourceList',params, 'params', inactiveIdsArray, 'inactiveIdsArray', loggedInUser, 'loggedInUser');
100
+ console.log(
101
+ sourceList,
102
+ 'sourceList',
103
+ params,
104
+ 'params',
105
+ inactiveIdsArray,
106
+ 'inactiveIdsArray',
107
+ loggedInUser,
108
+ 'loggedInUser',
109
+ );
101
110
  let result: { label: string; value: number }[] = [];
102
111
  if (!sourceList) return result;
103
112
 
@@ -127,9 +136,14 @@ export class ListMasterService {
127
136
  );
128
137
  } else {
129
138
  // IN the case of BRN, we don't filter by level
130
- qb.andWhere(`${tableName}.organization_id = :organization_id`, {
131
- organization_id: loggedInUser.organization_id,
132
- });
139
+ qb.andWhere(
140
+ `${tableName}.parent_id = :organization_id
141
+ AND ${tableName}.type = 'BRN'
142
+ `,
143
+ {
144
+ organization_id: loggedInUser.organization_id,
145
+ },
146
+ );
133
147
  }
134
148
  }
135
149