@@ -105,8 +105,8 @@ const buildCreateInvitePromises = (req, inviteEmails, inviteUserIds, invites, da
105
105
// if for some emails there are already existent users, we will invite them by userId,
106
106
// to avoid sending them registration email
107
107
return util . lookupMultipleUserEmails ( req , inviteEmails , MAX_PARALLEL_REQUEST_QTY )
108
- // we have to filter emails returned by the Message Service so we only invite the users
109
- // whom we are inviting, because Message Service has a loose search logic and may return
108
+ // we have to filter emails returned by the Identity Service so we only invite the users
109
+ // whom we are inviting, because Identity Service could possibly (maybe) return
110
110
// users with emails whom we didn't search for
111
111
. then ( foundUsers => foundUsers . filter ( foundUser => _ . includes ( inviteEmails , foundUser . email ) ) )
112
112
. then ( ( existentUsers ) => {
@@ -275,8 +275,8 @@ module.exports = [
275
275
276
276
// get member details by handles first
277
277
return util . getMemberDetailsByHandles ( invite . handles , req . log , req . id )
278
- // we have to filter users returned by the Message Service so we only invite the users
279
- // whom we are inviting, because Message Service has a loose search logic and may return
278
+ // we have to filter users returned by the Member Service so we only invite the users
279
+ // whom we are inviting, because Member Service has a loose search logic and may return
280
280
// users with handles whom we didn't search for
281
281
. then ( foundUsers => foundUsers . filter ( foundUser => _ . includes ( invite . handles , foundUser . handle ) ) )
282
282
. then ( ( inviteUsers ) => {
0 commit comments