2626from simcore_service_catalog .repository .groups import GroupsRepository
2727
2828from ...repository .services import ServicesRepository
29- from ...service import services_api
29+ from ...service import services
3030from .._dependencies .director import get_director_api
3131
3232_logger = logging .getLogger (__name__ )
@@ -68,7 +68,7 @@ async def list_services_paginated(
6868) -> PageRpcLatestServiceGet :
6969 assert app .state .engine # nosec
7070
71- total_count , items = await services_api .list_latest_services (
71+ total_count , items = await services .list_latest_services (
7272 repo = ServicesRepository (app .state .engine ),
7373 director_api = get_director_api (app ),
7474 product_name = product_name ,
@@ -111,7 +111,7 @@ async def get_service(
111111) -> ServiceGetV2 :
112112 assert app .state .engine # nosec
113113
114- service = await services_api .get_service (
114+ service = await services .get_service (
115115 repo = ServicesRepository (app .state .engine ),
116116 director_api = get_director_api (app ),
117117 product_name = product_name ,
@@ -148,7 +148,7 @@ async def update_service(
148148
149149 assert app .state .engine # nosec
150150
151- service = await services_api .update_service (
151+ service = await services .update_service (
152152 repo = ServicesRepository (app .state .engine ),
153153 director_api = get_director_api (app ),
154154 product_name = product_name ,
@@ -184,7 +184,7 @@ async def check_for_service(
184184 """Checks whether service exists and can be accessed, otherwise it raise"""
185185 assert app .state .engine # nosec
186186
187- await services_api .check_for_service (
187+ await services .check_for_service (
188188 repo = ServicesRepository (app .state .engine ),
189189 product_name = product_name ,
190190 user_id = user_id ,
@@ -210,7 +210,7 @@ async def batch_get_my_services(
210210) -> list [MyServiceGet ]:
211211 assert app .state .engine # nosec
212212
213- services = await services_api .batch_get_my_services (
213+ services = await services .batch_get_my_services (
214214 repo = ServicesRepository (app .state .engine ),
215215 groups_repo = GroupsRepository (app .state .engine ),
216216 product_name = product_name ,
@@ -237,7 +237,7 @@ async def list_my_service_history_paginated(
237237) -> PageRpcServiceRelease :
238238 assert app .state .engine # nosec
239239
240- total_count , items = await services_api .list_my_service_release_history (
240+ total_count , items = await services .list_my_service_release_history (
241241 repo = ServicesRepository (app .state .engine ),
242242 product_name = product_name ,
243243 user_id = user_id ,
0 commit comments