mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 00:07:02 -04:00
Fix order of callbacks
Delivery comes before inbound. The order of the URLs was jumbled in two places: - in the view function - in the Jinja template So as the user saw it the URLs were in the right order, because the double jumbling cancelled itself out. But it made the code _really_ confusing to read.
This commit is contained in:
@@ -157,7 +157,7 @@ def api_callbacks(service_id):
|
||||
if 'inbound_sms' not in current_service['permissions']:
|
||||
return redirect(url_for('.delivery_status_callback', service_id=service_id))
|
||||
|
||||
received_text_messages_callback, delivery_status_callback = get_apis()
|
||||
delivery_status_callback, received_text_messages_callback = get_apis()
|
||||
|
||||
return render_template(
|
||||
'views/api/callbacks.html',
|
||||
|
||||
Reference in New Issue
Block a user