File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
services/web/server/src/simcore_service_webserver/projects Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -1213,8 +1213,6 @@ async def patch_project_node(
12131213 mode = "json" , exclude_unset = True , by_alias = True
12141214 )
12151215
1216- _projects_repository_legacy = ProjectDBAPI .get_from_app_context (app )
1217-
12181216 # 1. Check user permissions
12191217 await check_user_project_permission (
12201218 app ,
@@ -1226,14 +1224,15 @@ async def patch_project_node(
12261224
12271225 # 2. If patching service key or version make sure it's valid
12281226 if _node_patch_exclude_unset .get ("key" ) or _node_patch_exclude_unset .get ("version" ):
1229- _project , _ = await _projects_repository_legacy .get_project_dict_and_type (
1230- project_uuid = f"{ project_id } "
1227+ _project_node = await _projects_nodes_repository .get (
1228+ app ,
1229+ project_id = project_id ,
1230+ node_id = node_id ,
12311231 )
1232- _project_node_data = _project ["workbench" ][f"{ node_id } " ]
12331232
1234- _service_key = _node_patch_exclude_unset .get ("key" , _project_node_data [ " key" ] )
1233+ _service_key = _node_patch_exclude_unset .get ("key" , _project_node . key )
12351234 _service_version = _node_patch_exclude_unset .get (
1236- "version" , _project_node_data [ " version" ]
1235+ "version" , _project_node . version
12371236 )
12381237 rabbitmq_rpc_client = get_rabbitmq_rpc_client (app )
12391238 await catalog_rpc .check_for_service (
You can’t perform that action at this time.
0 commit comments