File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -46,20 +46,20 @@ module.exports = [
46
46
// Update the deletedBy, and soft delete
47
47
return milestone . update ( { deletedBy : req . authUser . userId } , { transaction : tx } )
48
48
. then ( ( ) => milestone . destroy ( { transaction : tx } ) ) ;
49
- } )
50
- . then ( ( deleted ) => {
51
- // Send event to bus
52
- req . log . debug ( 'Sending event to RabbitMQ bus for milestone %d' , deleted . id ) ;
53
- req . app . services . pubsub . publish ( EVENT . ROUTING_KEY . MILESTONE_REMOVED ,
54
- deleted ,
55
- { correlationId : req . id } ,
56
- ) ;
49
+ } ) ,
50
+ )
51
+ . then ( ( deleted ) => {
52
+ // Send event to bus
53
+ req . log . debug ( 'Sending event to RabbitMQ bus for milestone %d' , deleted . id ) ;
54
+ req . app . services . pubsub . publish ( EVENT . ROUTING_KEY . MILESTONE_REMOVED ,
55
+ deleted ,
56
+ { correlationId : req . id } ,
57
+ ) ;
57
58
58
- // Write to response
59
- res . status ( 204 ) . end ( ) ;
60
- return Promise . resolve ( ) ;
61
- } )
62
- . catch ( next ) ,
63
- ) ;
59
+ // Write to response
60
+ res . status ( 204 ) . end ( ) ;
61
+ return Promise . resolve ( ) ;
62
+ } )
63
+ . catch ( next ) ;
64
64
} ,
65
65
] ;
You can’t perform that action at this time.
0 commit comments