File tree Expand file tree Collapse file tree 2 files changed +2
-14
lines changed
src/components/engagement Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Original file line number Diff line number Diff line change 1
1
export * from './engagement.service' ;
2
- export * from './engagement.rules' ;
3
2
export * from './engagement.loader' ;
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ import {
13
13
} from './dto' ;
14
14
import { EngagementWorkflow } from './engagement-workflow' ;
15
15
import { EngagementWorkflowRepository } from './engagement-workflow.repository' ;
16
- import { EngagementTransitionedEvent } from './events/engagement-transitioned.event' ;
17
16
18
17
@Injectable ( )
19
18
export class EngagementWorkflowService extends WorkflowService (
@@ -89,7 +88,7 @@ export class EngagementWorkflowService extends WorkflowService(
89
88
input . transition ,
90
89
) ;
91
90
92
- const unsecuredEvent = await this . repo . recordEvent (
91
+ await this . repo . recordEvent (
93
92
{
94
93
engagement : engagementId ,
95
94
...( typeof next !== 'string'
@@ -101,17 +100,7 @@ export class EngagementWorkflowService extends WorkflowService(
101
100
) ;
102
101
103
102
engagements . clear ( loaderKey ) ;
104
- const updated = await engagements . load ( loaderKey ) ;
105
-
106
- const event = new EngagementTransitionedEvent (
107
- updated ,
108
- previous . status . value ! ,
109
- next ,
110
- unsecuredEvent ,
111
- ) ;
112
- await this . eventBus . publish ( event ) ;
113
-
114
- return updated ;
103
+ return await engagements . load ( loaderKey ) ;
115
104
}
116
105
117
106
/** @deprecated */
You can’t perform that action at this time.
0 commit comments