Merge pull request #19626 from overleaf/ii-invite-remove-unncecessary-fields

[web] Clean up props exposed to the /invite and /invites endpoints

GitOrigin-RevId: dc4163e04d5785e141d5e322bfb0a626e67d637f
This commit is contained in:
ilkin-overleaf
2024-08-12 08:05:04 +00:00
committed by Copybot
parent 97b62e01f8
commit 16cdf5140a
6 changed files with 76 additions and 77 deletions
@@ -141,16 +141,6 @@ module.exports = ProjectEditorHandler = {
if (invites == null) {
return []
}
return invites.map(invite =>
_.pick(invite, [
'_id',
'createdAt',
'email',
'expires',
'privileges',
'projectId',
'sendingUserId',
])
)
return invites.map(invite => _.pick(invite, ['_id', 'email', 'privileges']))
},
}