mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 23:55:58 -05:00
Update post_allocate_inbound_number to set the service_sms_sender in the case when a service had the number, then it was set to inactive and now there is a request to turn it back on (or click allow inbound sms a couple of times on the front end)
This commit is contained in:
@@ -36,6 +36,8 @@ def post_allocate_inbound_number(service_id):
|
||||
if inbound_number:
|
||||
if not inbound_number.active:
|
||||
dao_set_inbound_number_active_flag(service_id, active=True)
|
||||
service = dao_fetch_service_by_id(service_id)
|
||||
insert_or_update_service_sms_sender(service, inbound_number.number, inbound_number.id)
|
||||
return jsonify(), 204
|
||||
else:
|
||||
return jsonify(), 200
|
||||
|
||||
Reference in New Issue
Block a user