Fix bug with sending sms

This commit is contained in:
Rebecca Law
2016-01-28 12:44:05 +00:00
parent 9bf11b3d40
commit 92cec8831e

View File

@@ -42,7 +42,7 @@ def create_sms_notification():
return jsonify(notify_alpha_client.send_sms(mobile_number=to, message=content)), 200
else:
to, restricted_errors = validate_to_for_service(notification, api_user['client'])
to, restricted_errors = validate_to_for_service(to, api_user['client'])
if restricted_errors['restricted']:
errors.update(restricted_errors)