mirror of
https://github.com/GSA/notifications-api.git
synced 2026-07-18 05:30:48 -04:00
Merge pull request #654 from GSA/notify-admin-931
notify-admin-931 add a preferred timezone widget
This commit is contained in:
@@ -211,6 +211,7 @@ class User(db.Model):
|
||||
"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):
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user