rez_core 4.0.50 → 4.0.51

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": "4.0.50",
3
+ "version": "4.0.51",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -269,25 +269,22 @@ if (entity_type === 'TEMP' || entity_type === 'TEM') {
269
269
  baseWhere.push({
270
270
  query: `
271
271
  (
272
- (e.level_type = 'SCH' AND e.level_id = :sch_level_id_main AND e.organization_id = :org_level_id_main)
272
+ (e.level_type = 'SCH' AND e.level_id = ${loggedInUser.level_id} AND e.organization_id = ${loggedInUser.organization_id})
273
273
  OR
274
274
  (
275
275
  e.level_type = 'ORG'
276
- AND e.level_id = :org_level_id_org
277
- AND e.organization_id = :org_level_id_org
276
+ AND e.level_id = ${loggedInUser.organization_id}
277
+ AND e.organization_id = ${loggedInUser.organization_id}
278
278
  AND e.code NOT IN (
279
279
  SELECT sub.code
280
280
  FROM frm_wf_comm_template AS sub
281
- WHERE sub.level_type = 'SCH' AND sub.level_id = :sch_level_id_sub
281
+ WHERE sub.level_type = 'SCH' AND sub.level_id = ${loggedInUser.level_id}
282
282
  )
283
283
  )
284
284
  )
285
285
  `,
286
286
  params: {
287
- sch_level_id_main: loggedInUser.level_id,
288
- org_level_id_main: loggedInUser.organization_id,
289
- org_level_id_org: loggedInUser.organization_id,
290
- sch_level_id_sub: loggedInUser.level_id
287
+
291
288
  }
292
289
  });
293
290