Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion app/api/role_invites.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ def accept_invite():
return jsonify({
"email": user.email,
"event": role_invite.event_id,
"name": user.fullname if user.fullname else None
"name": user.fullname if user.fullname else None,
"role": uer.role.name
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix the typo.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@prateekj117 It's not a typo 😆 , it's a uer object, users_events_roles

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@uds5501 Can you name more understandable,At first even i thought its a typo

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kushthedude I think that wouldn't exactly be necessary. all through our code, uer is being used as users_events_roles model so I think I should stick to it to maintain uniformity.

})


Expand Down