mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-30 20:31:37 -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))
|
||||
|
||||
result = db.session.execute(stmt)
|
||||
return result.unique().scalars().one()
|
||||
return result.unique().scalars().all()
|
||||
|
||||
|
||||
def get_services_by_partial_name(service_name):
|
||||
|
||||
Reference in New Issue
Block a user