diff --git a/app/models.py b/app/models.py index d141d8c29..ae2a2d552 100644 --- a/app/models.py +++ b/app/models.py @@ -211,6 +211,7 @@ def serialize(self): "services": [x.id for x in self.services if x.active], "can_use_webauthn": self.can_use_webauthn, "state": self.state, + "preferred_timezone": self.preferred_timezone, } def serialize_for_users_list(self): diff --git a/app/user/rest.py b/app/user/rest.py index f49f78c57..25714d94a 100644 --- a/app/user/rest.py +++ b/app/user/rest.py @@ -137,6 +137,7 @@ def update_user_attribute(user_id): ) send_notification_to_queue(saved_notification, queue=QueueNames.NOTIFY) + return jsonify(data=user_to_update.serialize()), 200