Pass API correct attribute to search inbound SMS

It’s `phone_number` here:
https://github.com/alphagov/notifications-api/blob/1250e47cc7c34356f33079a7490c8e548ebd0f3f/app/inbound_sms/rest.py#L33
This commit is contained in:
Chris Hill-Scott
2019-04-02 09:17:13 +01:00
committed by GitHub
parent 0f9207a161
commit e7abebebf3
+1 -1
View File
@@ -297,7 +297,7 @@ class ServiceAPIClient(NotifyAdminAPIClient):
'/service/{}/inbound-sms'.format(
service_id,
),
data={'user_number': user_number}
data={'phone_number': user_number}
)
def get_most_recent_inbound_sms(self, service_id, page=None):