Skip to content

Commit e8ac9f7

Browse files
author
Maksym Mykhailenko
committed
docs: fix comments
1 parent de1e29c commit e8ac9f7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/routes/projectMemberInvites/create.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ const buildCreateInvitePromises = (req, inviteEmails, inviteUserIds, invites, da
105105
// if for some emails there are already existent users, we will invite them by userId,
106106
// to avoid sending them registration email
107107
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
110110
// users with emails whom we didn't search for
111111
.then(foundUsers => foundUsers.filter(foundUser => _.includes(inviteEmails, foundUser.email)))
112112
.then((existentUsers) => {
@@ -275,8 +275,8 @@ module.exports = [
275275

276276
// get member details by handles first
277277
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
280280
// users with handles whom we didn't search for
281281
.then(foundUsers => foundUsers.filter(foundUser => _.includes(invite.handles, foundUser.handle)))
282282
.then((inviteUsers) => {

0 commit comments

Comments
 (0)