optimize how we look up phone numbers

This commit is contained in:
Kenneth Kehl
2024-01-18 13:54:23 -08:00
parent 7997d887c6
commit f9120e7d3e
2 changed files with 50 additions and 5 deletions

View File

@@ -433,8 +433,12 @@ def get_all_notifications_for_service(service_id):
notification.job_id,
notification.job_row_number,
)
print(f"RECIPIENTE IN service/rest {recipient}")
notification.to = recipient
notification.normalised_to = recipient
else:
notification.to = "1"
notification.normalised_to = "1"
kwargs = request.args.to_dict()
kwargs["service_id"] = service_id
@@ -474,7 +478,7 @@ def get_all_notifications_for_service(service_id):
page,
len(next_page_of_pagination.items),
".get_all_notifications_for_service",
**kwargs
**kwargs,
)
if count_pages
else {},