mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 09:51:11 -05:00
try by not closing session
This commit is contained in:
@@ -60,7 +60,7 @@ def dao_fetch_all_services(only_active=False):
|
|||||||
stmt = stmt.order_by(asc(Service.created_at)).options(joinedload(Service.users))
|
stmt = stmt.order_by(asc(Service.created_at)).options(joinedload(Service.users))
|
||||||
|
|
||||||
result = db.session.execute(stmt)
|
result = db.session.execute(stmt)
|
||||||
return result.unique().scalars().one()
|
return result.unique().scalars().all()
|
||||||
|
|
||||||
|
|
||||||
def get_services_by_partial_name(service_name):
|
def get_services_by_partial_name(service_name):
|
||||||
|
|||||||
Reference in New Issue
Block a user