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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rez_core",
3
- "version": "5.0.22",
3
+ "version": "5.0.24",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -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
- 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 ON a.id = m.action_id
193
- LEFT JOIN frm_wf_action_category ac ON a.action_category = ac.id
194
- WHERE m.stage_id = $1
195
- `,
196
- [stageId],
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) {