Skip to content

Commit

Permalink
made the update function flexible enough
Browse files Browse the repository at this point in the history
  • Loading branch information
CHRISTOPHERKADOGO committed Jul 19, 2024
1 parent d865b42 commit 5c94290
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ def patch(self, user_id):
"""
try:

user_schema = UserSchema(partial=True)
user_schema = UserSchema(only=("name","is_public", "organisation"),partial=True)
user_data = request.get_json()

current_user_id = get_jwt_identity()
Expand Down

0 comments on commit 5c94290

Please sign in to comment.