rez_core 2.2.137 → 2.2.139
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/notification/service/email.service.js +1 -0
- package/dist/module/notification/service/email.service.js.map +1 -1
- package/dist/module/workflow/repository/stage.repository.js +11 -0
- package/dist/module/workflow/repository/stage.repository.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/module/notification/service/email.service.ts +1 -0
- package/src/module/workflow/repository/stage.repository.ts +15 -0
package/package.json
CHANGED
|
@@ -88,6 +88,18 @@ export class StageRepository {
|
|
|
88
88
|
g.id as stage_group_id, g.name as stage_group_name, g.workflow_id,
|
|
89
89
|
s.*
|
|
90
90
|
FROM cr_wf_stage_group g
|
|
91
|
+
LEFT JOIN cr_wf_stage s ON s.stage_group_id = g.id
|
|
92
|
+
WHERE g.workflow_id = ? AND g.organization_id = ?
|
|
93
|
+
ORDER BY g.id, s.id
|
|
94
|
+
`,
|
|
95
|
+
[stageGroup.workflow_id, organization_id],
|
|
96
|
+
);
|
|
97
|
+
const rows2 = await this.dataSource.query(
|
|
98
|
+
`
|
|
99
|
+
SELECT
|
|
100
|
+
g.id as stage_group_id, g.name as stage_group_name, g.workflow_id,
|
|
101
|
+
s.*
|
|
102
|
+
FROM cr_wf_stage_group g
|
|
91
103
|
INNER JOIN cr_wf_stage s ON s.stage_group_id = g.id
|
|
92
104
|
WHERE g.workflow_id = ? AND g.organization_id = ?
|
|
93
105
|
ORDER BY g.id, s.id
|
|
@@ -95,6 +107,9 @@ export class StageRepository {
|
|
|
95
107
|
[stageGroup.workflow_id, organization_id],
|
|
96
108
|
);
|
|
97
109
|
|
|
110
|
+
console.log(rows, '-----------LEFT JOIN----------');
|
|
111
|
+
console.log(rows2, '-----------INNER JOIN----------');
|
|
112
|
+
|
|
98
113
|
if (!rows || rows.length === 0) {
|
|
99
114
|
return [];
|
|
100
115
|
}
|