Skip to content
Snippets Groups Projects
Commit f8246e8c authored by Sebastian's avatar Sebastian
Browse files

fix(component-invite): update the user after team creation

parent 7a2ff77a
No related branches found
No related tags found
No related merge requests found
......@@ -70,6 +70,8 @@ module.exports = async (
role,
)
// getting the updated user from the DB - creating a team also updates the user
user = await models.User.findByEmail(email)
user = await teamHelper.setupInvitation(user, role, collectionId, team.id)
try {
......
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