rez_core 2.2.67 → 2.2.68

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.67",
3
+ "version": "2.2.68",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -81,7 +81,7 @@ export class StageGroupRepository {
81
81
  `
82
82
  SELECT stage_id, COUNT(*) AS task_count
83
83
  FROM cr_wf_task_data
84
- WHERE stage_id IN (${stageIds.map(() => '?').join(',')})
84
+ WHERE stage_id IN (${stageIds.map(() => '?').join(',')}) AND is_system=0
85
85
  GROUP BY stage_id
86
86
  `,
87
87
  [...stageIds],
@@ -103,7 +103,18 @@ export class StageGroupRepository {
103
103
  `
104
104
  SELECT stage_id, COUNT(*) AS send_comm_count
105
105
  FROM cr_lead_communication
106
- WHERE stage_id IN (${stageIds.map(() => '?').join(',')}) AND type = 'SEND'
106
+ WHERE stage_id IN (${stageIds.map(() => '?').join(',')})
107
+ AND type IN ('SEND', 'LOG')
108
+ GROUP BY stage_id
109
+ `,
110
+ [...stageIds],
111
+ );
112
+
113
+ const logIntCounts = await this.dataSource.query(
114
+ `
115
+ SELECT stage_id, COUNT(*) AS send_comm_count
116
+ FROM cr_lead_communication
117
+ WHERE stage_id IN (${stageIds.map(() => '?').join(',')}) AND type = 'LOG'
107
118
  GROUP BY stage_id
108
119
  `,
109
120
  [...stageIds],