File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/routes/projectMemberInvites Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -130,6 +130,7 @@ module.exports = [
130
130
}
131
131
132
132
req . log . debug ( 'Creating invites' ) ;
133
+ const emailEventType = BUS_API_EVENT . PROJECT_MEMBER_EMAIL_INVITE_CREATED
133
134
return models . sequelize . Promise . all ( invitePromises )
134
135
. then ( ( values ) => {
135
136
values . forEach ( ( v ) => {
@@ -151,7 +152,7 @@ module.exports = [
151
152
raw : true ,
152
153
} )
153
154
. then ( ( _project ) => {
154
- createEvent ( BUS_API_EVENT . PROJECT_MEMBER_EMAIL_INVITE_CREATED ,
155
+ createEvent ( emailEventType ,
155
156
{
156
157
data : {
157
158
date : ( new Date ( ) ) . toISOString ( ) ,
@@ -164,7 +165,7 @@ module.exports = [
164
165
name : config . get ( 'EMAIL_INVITE_FROM_NAME' ) ,
165
166
email : config . get ( 'EMAIL_INVITE_FROM_EMAIL' ) ,
166
167
} ,
167
- categories : [ PROJECT_MEMBER_EMAIL_INVITE_CREATED ] ,
168
+ categories : [ ` ${ config . ENV } : ${ emailEventType } ` . toLowerCase ( ) ] ,
168
169
} , req . log ) ;
169
170
} ) ;
170
171
}
You can’t perform that action at this time.
0 commit comments