rez_core 5.0.14 → 5.0.15

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": "5.0.14",
3
+ "version": "5.0.15",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -44,16 +44,25 @@ export class ActionTemplateMappingService extends EntityServiceImpl {
44
44
 
45
45
  const commTemplates = await this.dataSource.query(
46
46
  `
47
- SELECT code as value, name as label , id
48
- FROM frm_wf_comm_template
49
- WHERE mode = $1 AND organization_id = $2 AND level_type = $3 AND level_id = $4 AND status IN (SELECT id FROM frm_list_master_items WHERE code = 'STATUS_ACTIVE' AND organization_id = $5)
50
- `,
47
+ SELECT code as value, name as label , id
48
+ FROM frm_wf_comm_template
49
+ WHERE mode = $1
50
+ AND organization_id = $2
51
+ AND level_type = $3
52
+ AND level_id::int = $4
53
+ AND status::int IN (
54
+ SELECT id
55
+ FROM frm_list_master_items
56
+ WHERE code = 'STATUS_ACTIVE'
57
+ AND organization_id = $5
58
+ )
59
+ `,
51
60
  [
52
- modeId,
53
- loggedInUser.organization_id,
54
- loggedInUser.level_type,
55
- loggedInUser.level_id,
56
- loggedInUser.organization_id,
61
+ String(modeId),
62
+ String(loggedInUser.organization_id),
63
+ String(loggedInUser.level_type),
64
+ Number(loggedInUser.level_id), // keep number
65
+ String(loggedInUser.organization_id),
57
66
  ],
58
67
  );
59
68