rez_core 2.2.164 → 2.2.166

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.164",
3
+ "version": "2.2.166",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -318,6 +318,7 @@ export class EntityServiceImpl implements EntityService<BaseEntity> {
318
318
  if (!entityData.enterprise_id)
319
319
  entityData.enterprise_id = loggedInUser.enterprise_id;
320
320
  }
321
+ console.log(entityData, 'WWWWWWWWW');
321
322
  await repoService.update(entityData.id, entityData);
322
323
  return await repoService.findOne({ where: { id: entityData.id } });
323
324
  }
@@ -124,17 +124,19 @@ export class WorkflowMetaService extends EntityServiceImpl {
124
124
  loggedInUser,
125
125
  );
126
126
 
127
- await this.taskService.createSystemNote(
128
- {
129
- reason_code: reason_code || '',
130
- remark: remark || '',
131
- mapped_entity_id,
132
- stage_id: currentStage.stage_id,
133
- action_id: currentStage.action_id,
134
- stage_group_id: currentStage.stage_group_id,
135
- },
136
- loggedInUser,
137
- );
127
+ if (currentStage) {
128
+ await this.taskService.createSystemNote(
129
+ {
130
+ reason_code: reason_code || '',
131
+ remark: remark || '',
132
+ mapped_entity_id,
133
+ stage_id: currentStage.stage_id,
134
+ action_id: currentStage.action_id,
135
+ stage_group_id: currentStage.stage_group_id,
136
+ },
137
+ loggedInUser,
138
+ );
139
+ }
138
140
 
139
141
  // Case 1: First stage – initialize
140
142
  if (!currentStage) {