rez_core 2.2.24 → 2.2.25

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.24",
3
+ "version": "2.2.25",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -39,11 +39,10 @@ export class ActionCategoryController {
39
39
  @Req() req: Request & { user: any },
40
40
  @Body('action_cat_code') action_cat_code: string,
41
41
  ) {
42
- const loggedInUser = req.user.userData;
43
- const result = this.actionCategoryService.getReasonCodeByActionCategoryId(
44
- loggedInUser,
45
- action_cat_code,
46
- );
42
+ const result =
43
+ this.actionCategoryService.getReasonCodeByActionCategoryId(
44
+ action_cat_code,
45
+ );
47
46
  return result;
48
47
  }
49
48
 
@@ -28,18 +28,14 @@ export class ActionCategoryService extends EntityServiceImpl {
28
28
  }));
29
29
  }
30
30
 
31
- async getReasonCodeByActionCategoryId(
32
- loggedInUser: UserData,
33
- action_cat_code: string,
34
- ) {
35
- const { organization_id } = loggedInUser;
31
+ async getReasonCodeByActionCategoryId(action_cat_code: string) {
36
32
  const result = await this.dataSource.query(
37
33
  `
38
34
  SELECT id, reason_code
39
35
  FROM cr_wf_action_category
40
- WHERE organization_id = ? AND code = ?
36
+ WHERE code = ?
41
37
  `,
42
- [organization_id, action_cat_code],
38
+ [action_cat_code],
43
39
  );
44
40
 
45
41
  return {