File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed
src/routes/projectMemberInvites Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ workflows:
149
149
context : org-global
150
150
filters :
151
151
branches :
152
- only : ['develop', 'migration-setup', 'pm-1169_1' ]
152
+ only : ['develop', 'migration-setup']
153
153
- deployProd :
154
154
context : org-global
155
155
filters :
Original file line number Diff line number Diff line change @@ -233,6 +233,15 @@ module.exports = [
233
233
transaction : t ,
234
234
} ) ;
235
235
236
+ const invitesToBeUpdated = await models . ProjectMemberInvite . findAll ( {
237
+ where : {
238
+ applicationId : {
239
+ [ Op . in ] : copilotApplications . map ( item => item . id ) ,
240
+ }
241
+ } ,
242
+ transaction : t ,
243
+ } ) ;
244
+
236
245
// Cancel the existing invites which are opened via
237
246
// applications
238
247
await models . ProjectMemberInvite . update ( {
@@ -245,6 +254,14 @@ module.exports = [
245
254
} ,
246
255
transaction : t ,
247
256
} ) ;
257
+
258
+ invitesToBeUpdated . forEach ( ( inviteToBeUpdated ) => {
259
+ util . sendResourceToKafkaBus (
260
+ req ,
261
+ EVENT . ROUTING_KEY . PROJECT_MEMBER_INVITE_UPDATED ,
262
+ RESOURCES . PROJECT_MEMBER_INVITE ,
263
+ inviteToBeUpdated . toJSON ( ) ) ;
264
+ } )
248
265
}
249
266
250
267
await t . commit ( ) ;
You can’t perform that action at this time.
0 commit comments