rez_core 7.1.67 → 7.1.69

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.
Files changed (27) hide show
  1. package/.claude/settings.local.json +26 -0
  2. package/.idea/250218_nodejs_core.iml +9 -0
  3. package/.idea/codeStyles/Project.xml +59 -0
  4. package/.idea/codeStyles/codeStyleConfig.xml +5 -0
  5. package/.idea/copilot.data.migration.agent.xml +6 -0
  6. package/.idea/copilot.data.migration.ask.xml +6 -0
  7. package/.idea/copilot.data.migration.ask2agent.xml +6 -0
  8. package/.idea/copilot.data.migration.edit.xml +6 -0
  9. package/.idea/inspectionProfiles/Project_Default.xml +6 -0
  10. package/.idea/misc.xml +6 -0
  11. package/.idea/modules.xml +8 -0
  12. package/.idea/prettier.xml +6 -0
  13. package/.idea/vcs.xml +6 -0
  14. package/dist/module/workflow/workflow/repository/action-category.repository.d.ts +1 -0
  15. package/dist/module/workflow/workflow/repository/action-category.repository.js +3 -0
  16. package/dist/module/workflow/workflow/repository/action-category.repository.js.map +1 -1
  17. package/dist/module/workflow/workflow/service/workflow-meta.service.d.ts +2 -2
  18. package/dist/module/workflow/workflow/service/workflow-meta.service.js +5 -10
  19. package/dist/module/workflow/workflow/service/workflow-meta.service.js.map +1 -1
  20. package/dist/module/workflow/workflow/workflow.module.js +2 -2
  21. package/dist/module/workflow/workflow/workflow.module.js.map +1 -1
  22. package/dist/tsconfig.build.tsbuildinfo +1 -1
  23. package/package.json +1 -1
  24. package/server.log +850 -0
  25. package/src/module/workflow/workflow/repository/action-category.repository.ts +4 -0
  26. package/src/module/workflow/workflow/service/workflow-meta.service.ts +5 -10
  27. package/src/module/workflow/workflow/workflow.module.ts +2 -2
@@ -10,6 +10,10 @@ export class ActionCategoryRepository {
10
10
  private readonly actionCategoryRepository: Repository<ActionCategory>,
11
11
  ) { }
12
12
 
13
+ async findById(id: number) {
14
+ return this.actionCategoryRepository.findOne({ where: { id } });
15
+ }
16
+
13
17
  async find(options: any) {
14
18
  return this.actionCategoryRepository.find(options);
15
19
  }
@@ -13,10 +13,10 @@ import { ActionDataService } from './action-data.service';
13
13
  import { ActivityLogService } from './activity-log.service';
14
14
  import { EntityModificationService } from './entity-modification.service';
15
15
  import { TaskService } from './task.service';
16
- import { ActionCategory } from '../entity/action-category.entity';
17
16
  import { StageGroup } from '../entity/stage-group.entity';
18
17
  import { ActionDataEntity } from '../entity/action-data.entity';
19
18
  import { TaskDataEntity } from '../entity/task-data.entity';
19
+ import { ActionCategoryRepository } from '../repository/action-category.repository';
20
20
 
21
21
  @Injectable()
22
22
  export class WorkflowMetaService extends EntityServiceImpl {
@@ -34,8 +34,7 @@ export class WorkflowMetaService extends EntityServiceImpl {
34
34
  @Inject('EntityModificationService')
35
35
  private readonly modificationService: EntityModificationService,
36
36
  private readonly configService: ConfigService,
37
- @InjectRepository(ActionCategory)
38
- private readonly actionCategoryRepo: Repository<ActionCategory>,
37
+ private readonly actionCategoryRepo: ActionCategoryRepository,
39
38
  @InjectRepository(StageGroup)
40
39
  private readonly stageGroupRepo: Repository<StageGroup>,
41
40
  @InjectRepository(ActionDataEntity)
@@ -337,11 +336,7 @@ export class WorkflowMetaService extends EntityServiceImpl {
337
336
  // check whether first action's action_category is owner_assignment and assignment_type is AUTO_ASSIGN
338
337
  const firstAction = actions[0];
339
338
 
340
- const actionCategory = await this.actionCategoryRepo.findOne({
341
- where: {
342
- id: Number(firstAction.action_category),
343
- },
344
- });
339
+ const actionCategory = await this.actionCategoryRepo.findById(firstAction.action_category);
345
340
 
346
341
  const listMasterItemsRepo =
347
342
  this.reflectionHelper.getRepoService('ListMasterItems');
@@ -454,7 +449,7 @@ export class WorkflowMetaService extends EntityServiceImpl {
454
449
  .where('mapped_entity_id = :leadId', { leadId: lead_id })
455
450
  .andWhere('mapped_entity_type = :entityType', { entityType: entity_type })
456
451
  .andWhere('stage_id = :stageId', { stageId: stage_id })
457
- .andWhere("(is_current = 'Y' OR is_current IS NULL)")
452
+ .andWhere('(is_current = \'Y\' OR is_current IS NULL)')
458
453
  .execute();
459
454
 
460
455
  const leadMeetingRepo =
@@ -467,7 +462,7 @@ export class WorkflowMetaService extends EntityServiceImpl {
467
462
  .where('stage_id = :stageId', { stageId: stage_id })
468
463
  .andWhere('mapped_entity_id = :leadId', { leadId: lead_id })
469
464
  .andWhere('mapped_entity_type = :entityType', { entityType: 'LEAD' })
470
- .andWhere("(status = 'scheduled' OR status = 'rescheduled')")
465
+ .andWhere('(status = \'scheduled\' OR status = \'rescheduled\')')
471
466
  .execute();
472
467
 
473
468
  const taskRows = await this.taskDataEntityRepository.find({
@@ -93,8 +93,8 @@ import { ListMasterItems } from '../../listmaster/entity/list-master-items.entit
93
93
  ListMasterData,
94
94
  ListMasterItems,
95
95
  ]),
96
- ListMasterModule,
97
- EntityModule,
96
+ forwardRef(() => ListMasterModule),
97
+ forwardRef(() => EntityModule),
98
98
  NotificationModule,
99
99
  forwardRef(() => WorkflowAutomationModule),
100
100
  UtilsModule,