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.
- package/dist/module/workflow/repository/stage-group.repository.js +2 -2
- package/dist/module/workflow/service/workflow-meta.service.js +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/module/workflow/repository/stage-group.repository.ts +2 -2
- package/src/module/workflow/service/workflow-meta.service.ts +1 -1
package/package.json
CHANGED
|
@@ -110,7 +110,7 @@ export class StageGroupRepository {
|
|
|
110
110
|
const meetingCounts = await this.dataSource.query(
|
|
111
111
|
`
|
|
112
112
|
SELECT stage_id, COUNT(*) AS meeting_count
|
|
113
|
-
FROM
|
|
113
|
+
FROM crm_lead_meeting
|
|
114
114
|
WHERE stage_id IN (${stageIds.map(() => '?').join(',')}) AND lead_id = ?
|
|
115
115
|
GROUP BY stage_id
|
|
116
116
|
`,
|
|
@@ -121,7 +121,7 @@ export class StageGroupRepository {
|
|
|
121
121
|
const sendCommCounts = await this.dataSource.query(
|
|
122
122
|
`
|
|
123
123
|
SELECT stage_id, COUNT(*) AS send_comm_count
|
|
124
|
-
FROM
|
|
124
|
+
FROM crm_lead_communication
|
|
125
125
|
WHERE stage_id IN (${stageIds.map(() => '?').join(',')}) AND lead_id = ?
|
|
126
126
|
AND type IN ('SEND', 'LOG')
|
|
127
127
|
GROUP BY stage_id
|
|
@@ -387,7 +387,7 @@ export class WorkflowMetaService extends EntityServiceImpl {
|
|
|
387
387
|
);
|
|
388
388
|
|
|
389
389
|
await this.dataSource.query(
|
|
390
|
-
`UPDATE
|
|
390
|
+
`UPDATE crm_lead_meeting SET user_id=?
|
|
391
391
|
WHERE stage_id = ?
|
|
392
392
|
AND lead_id = ?
|
|
393
393
|
AND (status='scheduled' OR status='rescheduled')
|