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:
Chris Hill-Scott
2017-12-13 11:42:41 +00:00
parent f02ec30979
commit 3f01da05c7
3 changed files with 43 additions and 13 deletions

View File

@@ -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',