notify-admin-931

This commit is contained in:
Kenneth Kehl
2023-12-04 14:53:29 -08:00
parent 03a3e7628d
commit eea6933712
2 changed files with 7 additions and 1 deletions

View File

@@ -117,6 +117,7 @@ def update_user_attribute(user_id):
recipient = user_to_update.mobile_number
reply_to = get_sms_reply_to_for_notify_service(recipient, template)
else:
print(f"REST1 returns {user_to_update.serialize()}")
return jsonify(data=user_to_update.serialize()), 200
service = Service.query.get(current_app.config["NOTIFY_SERVICE_ID"])
@@ -137,6 +138,8 @@ def update_user_attribute(user_id):
)
send_notification_to_queue(saved_notification, queue=QueueNames.NOTIFY)
print(f"REST2 returns {user_to_update.serialize()}")
return jsonify(data=user_to_update.serialize()), 200