diff --git a/app/dao/services_dao.py b/app/dao/services_dao.py index e2594f337..687145fe2 100644 --- a/app/dao/services_dao.py +++ b/app/dao/services_dao.py @@ -221,7 +221,7 @@ def dao_fetch_service_by_id_with_api_keys(service_id, only_active=False): ) if only_active: 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):