mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-05 02:41:14 -05:00
convert more queries
This commit is contained in:
@@ -221,7 +221,7 @@ def dao_fetch_service_by_id_with_api_keys(service_id, only_active=False):
|
|||||||
)
|
)
|
||||||
if only_active:
|
if only_active:
|
||||||
stmt = stmt.filter(Service.working)
|
stmt = stmt.filter(Service.working)
|
||||||
return db.session.execute(stmt).scalars().one()
|
return db.session.execute(stmt).scalars().unique().one()
|
||||||
|
|
||||||
|
|
||||||
def dao_fetch_all_services_by_user(user_id, only_active=False):
|
def dao_fetch_all_services_by_user(user_id, only_active=False):
|
||||||
|
|||||||
Reference in New Issue
Block a user