rez_core 2.2.162 → 2.2.163

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.
@@ -84,13 +84,13 @@ let StageGroupRepository = class StageGroupRepository {
84
84
  `, [...stageIds, lead_id]);
85
85
  const meetingCounts = await this.dataSource.query(`
86
86
  SELECT stage_id, COUNT(*) AS meeting_count
87
- FROM cr_lead_meeting
87
+ FROM crm_lead_meeting
88
88
  WHERE stage_id IN (${stageIds.map(() => '?').join(',')}) AND lead_id = ?
89
89
  GROUP BY stage_id
90
90
  `, [...stageIds, lead_id]);
91
91
  const sendCommCounts = await this.dataSource.query(`
92
92
  SELECT stage_id, COUNT(*) AS send_comm_count
93
- FROM cr_lead_communication
93
+ FROM crm_lead_communication
94
94
  WHERE stage_id IN (${stageIds.map(() => '?').join(',')}) AND lead_id = ?
95
95
  AND type IN ('SEND', 'LOG')
96
96
  GROUP BY stage_id
@@ -216,7 +216,7 @@ let WorkflowMetaService = class WorkflowMetaService extends entity_service_impl_
216
216
  AND stage_id = ?
217
217
  AND (is_current = 'Y' OR is_current IS NULL)
218
218
  `, [lead_owner, lead_id, entity_type, stage_id]);
219
- await this.dataSource.query(`UPDATE cr_lead_meeting SET user_id=?
219
+ await this.dataSource.query(`UPDATE crm_lead_meeting SET user_id=?
220
220
  WHERE stage_id = ?
221
221
  AND lead_id = ?
222
222
  AND (status='scheduled' OR status='rescheduled')