Rename app_role_id to role_id

This commit is contained in:
Luka Radenovic 2022-04-15 13:51:30 +02:00
parent 0ef90ecc1e
commit 75b18bada8

View file

@ -65,6 +65,6 @@ class UserService:
@staticmethod @staticmethod
def __insertAppRoleToUser(userId, userRes): def __insertAppRoleToUser(userId, userRes):
app_role = AppRole.query.filter_by(user_id=userId).first() app_role = AppRole.query.filter_by(user_id=userId).first()
userRes["traits"]["app_role_id"] = app_role.role_id if app_role else None userRes["traits"]["role_id"] = app_role.role_id if app_role else None
return userRes return userRes