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/dist/module/workflow/controller/action-category.controller.js +1 -2
- package/dist/module/workflow/controller/action-category.controller.js.map +1 -1
- package/dist/module/workflow/service/action-category.service.d.ts +1 -1
- package/dist/module/workflow/service/action-category.service.js +3 -4
- package/dist/module/workflow/service/action-category.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/module/workflow/controller/action-category.controller.ts +4 -5
- package/src/module/workflow/service/action-category.service.ts +3 -7
package/package.json
CHANGED
|
@@ -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
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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
|
|
36
|
+
WHERE code = ?
|
|
41
37
|
`,
|
|
42
|
-
[
|
|
38
|
+
[action_cat_code],
|
|
43
39
|
);
|
|
44
40
|
|
|
45
41
|
return {
|