File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -20,13 +20,14 @@ module.exports = (app, logger) => {
20
20
/**
21
21
* PROJECT_DRAFT_CREATED
22
22
*/
23
- app . on ( EVENT . ROUTING_KEY . PROJECT_DRAFT_CREATED , ( { project } ) => {
23
+ app . on ( EVENT . ROUTING_KEY . PROJECT_DRAFT_CREATED , ( { req , project } ) => {
24
24
logger . debug ( 'receive PROJECT_DRAFT_CREATED event' ) ;
25
25
26
26
// send event to bus api
27
27
createEvent ( BUS_API_EVENT . PROJECT_CREATED , {
28
28
projectId : project . id ,
29
29
projectName : project . name ,
30
+ userId : req . authUser . userId
30
31
} ) ;
31
32
} ) ;
32
33
@@ -41,6 +42,7 @@ module.exports = (app, logger) => {
41
42
createEvent ( mapEventTypes [ updated . status ] , {
42
43
projectId : updated . id ,
43
44
projectName : updated . name ,
45
+ userId : req . authUser . userId ,
44
46
} ) ;
45
47
} else if (
46
48
! _ . isEqual ( original . details , updated . details ) ||
You can’t perform that action at this time.
0 commit comments