rez_core 5.0.22 → 5.0.23
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/repository/stage-movement.repository.js +12 -10
- package/dist/module/workflow/repository/stage-movement.repository.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/module/workflow/repository/stage-movement.repository.ts +13 -11
package/package.json
CHANGED
|
@@ -183,17 +183,19 @@ export class StageMovementRepository {
|
|
|
183
183
|
async getAllActionByStageId(stageId: number): Promise<any> {
|
|
184
184
|
const result = await this.dataSource.query(
|
|
185
185
|
`
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
186
|
+
SELECT
|
|
187
|
+
a.*,
|
|
188
|
+
m.id AS mapping_id,
|
|
189
|
+
m.stage_id,
|
|
190
|
+
ac.code AS action_category_code
|
|
191
|
+
FROM frm_wf_action a
|
|
192
|
+
LEFT JOIN frm_wf_stage_action_mapping m
|
|
193
|
+
ON a.id = m.action_id::bigint
|
|
194
|
+
LEFT JOIN frm_wf_action_category ac
|
|
195
|
+
ON a.action_category = ac.id
|
|
196
|
+
WHERE m.stage_id::bigint = $1
|
|
197
|
+
`,
|
|
198
|
+
[Number(stageId)],
|
|
197
199
|
);
|
|
198
200
|
|
|
199
201
|
// Use for..of with await instead of map
|