mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-14 01:02:09 -05:00
Fix bug with sending sms
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user