@@ -27,6 +27,7 @@ module.exports = (app, logger) => {
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
initiatorUserId : req . authUser . userId ,
31
32
} , logger ) ;
32
33
} ) ;
@@ -42,6 +43,7 @@ module.exports = (app, logger) => {
42
43
createEvent ( mapEventTypes [ updated . status ] , {
43
44
projectId : updated . id ,
44
45
projectName : updated . name ,
46
+ userId : req . authUser . userId ,
45
47
initiatorUserId : req . authUser . userId ,
46
48
} , logger ) ;
47
49
} else if (
@@ -52,13 +54,15 @@ module.exports = (app, logger) => {
52
54
createEvent ( BUS_API_EVENT . PROJECT_SPECIFICATION_MODIFIED , {
53
55
projectId : updated . id ,
54
56
projectName : updated . name ,
57
+ userId : req . authUser . userId ,
55
58
initiatorUserId : req . authUser . userId ,
56
59
} , logger ) ;
57
60
} else if ( ! _ . isEqual ( original . bookmarks , updated . bookmarks ) ) {
58
61
logger . debug ( 'project bookmarks is updated' ) ;
59
62
createEvent ( BUS_API_EVENT . PROJECT_LINK_CREATED , {
60
63
projectId : updated . id ,
61
64
projectName : updated . name ,
65
+ userId : req . authUser . userId ,
62
66
initiatorUserId : req . authUser . userId ,
63
67
} , logger ) ;
64
68
}
@@ -166,6 +170,7 @@ module.exports = (app, logger) => {
166
170
projectId,
167
171
projectName : project . name ,
168
172
fileName : attachment . filePath . replace ( / ^ .* [ \\ \/ ] / , '' ) , // eslint-disable-line
173
+ userId : req . authUser . userId ,
169
174
initiatorUserId : req . authUser . userId ,
170
175
} , logger ) ;
171
176
} ) . catch ( err => null ) ; // eslint-disable-line no-unused-vars
0 commit comments