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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rez_core",
3
- "version": "2.2.137",
3
+ "version": "2.2.139",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -51,6 +51,7 @@ export class EmailService {
51
51
  })
52
52
  .then(() => {
53
53
  console.log(`Email sent to ${email}`);
54
+ return;
54
55
  })
55
56
  .catch((err) => {
56
57
  console.error(`Failed to send email to ${email}`, err);
@@ -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
  }