From 92cec8831e2c70b988891b8b61950563258233f3 Mon Sep 17 00:00:00 2001 From: Rebecca Law Date: Thu, 28 Jan 2016 12:44:05 +0000 Subject: [PATCH] Fix bug with sending sms --- app/notifications/rest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/notifications/rest.py b/app/notifications/rest.py index 9b7b73a4e..a6c32eb94 100644 --- a/app/notifications/rest.py +++ b/app/notifications/rest.py @@ -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)