Skip to content
Snippets Groups Projects
Commit 4729ef58 authored by Alexandru Munteanu's avatar Alexandru Munteanu
Browse files

Merge branch 'refactor-component-invite' of...

Merge branch 'refactor-component-invite' of gitlab.coko.foundation:xpub/xpub-faraday into refactor-component-invite
parents 065d7039 0d83e1e4
No related branches found
No related tags found
1 merge request!5Refactor component invite
...@@ -52,6 +52,8 @@ module.exports = models => async (req, res) => { ...@@ -52,6 +52,8 @@ module.exports = models => async (req, res) => {
invitation.role, invitation.role,
models.Team, models.Team,
) )
delete collection.handlingEditor
await collection.save()
await teamHelper.removeTeamMember(team.id, user.id, models.Team) await teamHelper.removeTeamMember(team.id, user.id, models.Team)
user.teams = user.teams.filter(userTeamId => team.id !== userTeamId) user.teams = user.teams.filter(userTeamId => team.id !== userTeamId)
if (reason !== undefined) { if (reason !== undefined) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment