mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 23:55:58 -05:00
down to line 44
This commit is contained in:
@@ -35,9 +35,10 @@ def dao_set_inbound_number_to_service(service_id, inbound_number):
|
||||
|
||||
@autocommit
|
||||
def dao_set_inbound_number_active_flag(service_id, active):
|
||||
inbound_number = InboundNumber.query.filter(
|
||||
stmt = select(InboundNumber).filter(
|
||||
InboundNumber.service_id == service_id
|
||||
).first()
|
||||
)
|
||||
inbound_number = db.session.execute(stmt).scalars().first()
|
||||
inbound_number.active = active
|
||||
|
||||
db.session.add(inbound_number)
|
||||
|
||||
Reference in New Issue
Block a user