rez_core 5.0.22 → 5.0.24
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-movement.repository.js +12 -10
- package/dist/module/workflow/repository/stage-movement.repository.js.map +1 -1
- package/dist/module/workflow/service/stage-group.service.js +0 -2
- package/dist/module/workflow/service/stage-group.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/module/workflow/repository/stage-movement.repository.ts +13 -11
- package/src/module/workflow/service/stage-group.service.ts +0 -3
package/package.json
CHANGED
|
@@ -183,17 +183,19 @@ export class StageMovementRepository {
|
|
|
183
183
|
async getAllActionByStageId(stageId: number): Promise<any> {
|
|
184
184
|
const result = await this.dataSource.query(
|
|
185
185
|
`
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
186
|
+
SELECT
|
|
187
|
+
a.*,
|
|
188
|
+
m.id AS mapping_id,
|
|
189
|
+
m.stage_id,
|
|
190
|
+
ac.code AS action_category_code
|
|
191
|
+
FROM frm_wf_action a
|
|
192
|
+
LEFT JOIN frm_wf_stage_action_mapping m
|
|
193
|
+
ON a.id = m.action_id::bigint
|
|
194
|
+
LEFT JOIN frm_wf_action_category ac
|
|
195
|
+
ON a.action_category::bigint = ac.id
|
|
196
|
+
WHERE m.stage_id::bigint = $1
|
|
197
|
+
`,
|
|
198
|
+
[Number(stageId)],
|
|
197
199
|
);
|
|
198
200
|
|
|
199
201
|
// Use for..of with await instead of map
|
|
@@ -96,8 +96,6 @@ export class StageGroupService extends EntityServiceImpl {
|
|
|
96
96
|
return [];
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
console.log('stageMovementttegst', stageMovement);
|
|
100
|
-
|
|
101
99
|
const stageGroupData = await this.stageGroupRepo.findOne({
|
|
102
100
|
where: {
|
|
103
101
|
id: stageMovement[0].stage_group_id,
|
|
@@ -116,7 +114,6 @@ export class StageGroupService extends EntityServiceImpl {
|
|
|
116
114
|
lead_id,
|
|
117
115
|
loggedInUser,
|
|
118
116
|
);
|
|
119
|
-
console.log('leadData', leadData);
|
|
120
117
|
const leadRecord = Array.isArray(leadData) ? leadData[0] : null;
|
|
121
118
|
|
|
122
119
|
if (leadRecord && leadRecord.lead_status != null) {
|