mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-09 16:09:49 -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],
|
"services": [x.id for x in self.services if x.active],
|
||||||
"can_use_webauthn": self.can_use_webauthn,
|
"can_use_webauthn": self.can_use_webauthn,
|
||||||
"state": self.state,
|
"state": self.state,
|
||||||
|
"preferred_timezone": self.preferred_timezone,
|
||||||
}
|
}
|
||||||
|
|
||||||
def serialize_for_users_list(self):
|
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)
|
send_notification_to_queue(saved_notification, queue=QueueNames.NOTIFY)
|
||||||
|
|
||||||
return jsonify(data=user_to_update.serialize()), 200
|
return jsonify(data=user_to_update.serialize()), 200
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user