rez_core 6.5.18 → 6.5.20
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-automation/service/workflow-automation.service.js +1 -0
- package/dist/module/workflow-automation/service/workflow-automation.service.js.map +1 -1
- package/dist/module/workflow-automation/workflow-automation.module.js +2 -0
- package/dist/module/workflow-automation/workflow-automation.module.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/module/workflow-automation/service/workflow-automation.service.ts +3 -1
- package/src/module/workflow-automation/workflow-automation.module.ts +3 -2
package/package.json
CHANGED
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
Injectable,
|
|
5
5
|
Logger,
|
|
6
6
|
NotFoundException,
|
|
7
|
+
forwardRef,
|
|
7
8
|
} from '@nestjs/common';
|
|
8
9
|
import { InjectRepository } from '@nestjs/typeorm';
|
|
9
10
|
import { DataSource, Repository } from 'typeorm';
|
|
@@ -32,6 +33,7 @@ export class WorkflowAutomationService extends EntityServiceImpl {
|
|
|
32
33
|
private readonly dataSource: DataSource,
|
|
33
34
|
@InjectRepository(ScheduledWorkflow)
|
|
34
35
|
private readonly scheduledWorkflowRepository: Repository<ScheduledWorkflow>,
|
|
36
|
+
@Inject(forwardRef(() => WorkflowScheduleService))
|
|
35
37
|
private readonly workflowScheduleService: WorkflowScheduleService,
|
|
36
38
|
) {
|
|
37
39
|
super();
|
|
@@ -194,7 +196,7 @@ export class WorkflowAutomationService extends EntityServiceImpl {
|
|
|
194
196
|
existing.payload = a.actionPayload ?? {};
|
|
195
197
|
existing.actioncategoryname =
|
|
196
198
|
a.actionCategoryName ?? existing.actioncategoryname;
|
|
197
|
-
|
|
199
|
+
existing.status = a.status ?? existing.status;
|
|
198
200
|
await this.dataSource
|
|
199
201
|
.getRepository(WorkflowAutomationActionEntity)
|
|
200
202
|
.save(existing);
|
|
@@ -12,7 +12,7 @@ import { ActionRegistryService } from './service/action-registery.service';
|
|
|
12
12
|
import { ScheduleHandlerService } from './service/schedule-handler.service';
|
|
13
13
|
import { ScheduledWorkflow } from '../workflow-schedule/entities/scheduled-workflow.entity';
|
|
14
14
|
import { WorkflowExecutionLog } from '../workflow-schedule/entities/workflow-execution-log.entity';
|
|
15
|
-
import {EntityMaster} from "../meta/entity/entity-master.entity";
|
|
15
|
+
import { EntityMaster } from "../meta/entity/entity-master.entity";
|
|
16
16
|
import { ListMasterData } from '../listmaster/entity/list-master.entity';
|
|
17
17
|
import { ActionCategory } from '../workflow/entity/action-category.entity';
|
|
18
18
|
import { WorkflowScheduleModule } from '../workflow-schedule/workflow-schedule.module';
|
|
@@ -30,6 +30,7 @@ import { WorkflowScheduleModule } from '../workflow-schedule/workflow-schedule.m
|
|
|
30
30
|
]),
|
|
31
31
|
forwardRef(() => FilterModule),
|
|
32
32
|
forwardRef(() => EntityModule),
|
|
33
|
+
forwardRef(() => WorkflowScheduleModule), // 👈 Required for WorkflowScheduleService
|
|
33
34
|
DiscoveryModule, // 👈 enables provider scanning
|
|
34
35
|
],
|
|
35
36
|
providers: [
|
|
@@ -51,4 +52,4 @@ import { WorkflowScheduleModule } from '../workflow-schedule/workflow-schedule.m
|
|
|
51
52
|
],
|
|
52
53
|
controllers: [WorkflowAutomationController],
|
|
53
54
|
})
|
|
54
|
-
export class WorkflowAutomationModule {}
|
|
55
|
+
export class WorkflowAutomationModule { }
|