Skip to content

Commit

Permalink
fix/send delivery receipt for INTERNAL_TEST sms (#2323)
Browse files Browse the repository at this point in the history
  • Loading branch information
sastels authored Oct 9, 2024
1 parent 1a4e725 commit 248d4db
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/delivery/send_to_providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@ def send_sms_to_provider(notification):
if reference == "opted_out":
update_notification_to_opted_out(notification, provider)
else:
if (
validate_and_format_phone_number(notification.to, international=notification.international)
== current_app.config["INTERNAL_TEST_NUMBER"]
):
send_sms_response(provider.get_name(), notification.to, reference)
update_notification_to_sending(notification, provider)

# Record StatsD stats to compute SLOs
Expand Down

0 comments on commit 248d4db

Please sign in to comment.