mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 07:35:34 -05:00
Refactor:
* Filter inbound by service_id * Refactor to return 404 instead of 400 for consistency
This commit is contained in:
@@ -49,5 +49,8 @@ def delete_inbound_sms_created_more_than_a_week_ago():
|
||||
return deleted
|
||||
|
||||
|
||||
def dao_get_inbound_sms_by_id(inbound_id):
|
||||
return InboundSms.query.filter_by(id=inbound_id).one()
|
||||
def dao_get_inbound_sms_by_id(service_id, inbound_id):
|
||||
return InboundSms.query.filter_by(
|
||||
id=inbound_id,
|
||||
service_id=service_id
|
||||
).one()
|
||||
|
||||
Reference in New Issue
Block a user