@@ -14,19 +14,10 @@ import { EngagementRepository } from '../engagement.repository';
14
14
import { EngagementService } from '../engagement.service' ;
15
15
16
16
const changes : Change [ ] = [
17
- {
18
- to : { status : ProjectStatus . Active } ,
19
- newStatus : EngagementStatus . Active ,
20
- } ,
21
17
{
22
18
to : { step : ProjectStep . ActiveChangedPlan } ,
23
19
newStatus : EngagementStatus . ActiveChangedPlan ,
24
20
} ,
25
- {
26
- from : { status : ProjectStatus . Active } ,
27
- to : { status : ProjectStatus . InDevelopment } ,
28
- newStatus : EngagementStatus . InDevelopment ,
29
- } ,
30
21
{
31
22
to : { step : ProjectStep . DiscussingChangeToPlan } ,
32
23
newStatus : EngagementStatus . DiscussingChangeToPlan ,
@@ -63,6 +54,15 @@ const changes: Change[] = [
63
54
to : { step : ProjectStep . Terminated } ,
64
55
newStatus : EngagementStatus . Terminated ,
65
56
} ,
57
+ {
58
+ to : { status : ProjectStatus . Active } ,
59
+ newStatus : EngagementStatus . Active ,
60
+ } ,
61
+ {
62
+ from : { status : ProjectStatus . Active } ,
63
+ to : { status : ProjectStatus . InDevelopment } ,
64
+ newStatus : EngagementStatus . InDevelopment ,
65
+ } ,
66
66
] ;
67
67
68
68
type Change = RequireAtLeastOne < { from : Condition ; to : Condition } > & {
0 commit comments