Skip to content

Commit 6548188

Browse files
committed
@copilot review
1 parent cda168a commit 6548188

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

packages/models-library/src/models_library/projects_nodes.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,7 @@ class NodeState(BaseModel):
171171
),
172172
] = 0
173173

174-
lock_state: Annotated[
175-
NodeShareState, Field(description="the node's lock state")
176-
] = NodeShareState(locked=False, current_user_groupids=None, status=None)
174+
lock_state: Annotated[NodeShareState, Field(description="the node's lock state")]
177175

178176
model_config = ConfigDict(
179177
extra="forbid",

services/web/server/src/simcore_service_webserver/projects/_projects_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1274,7 +1274,7 @@ async def patch_project_node(
12741274
updated_project = await add_project_states_for_user(
12751275
user_id=user_id, project=updated_project, app=app
12761276
)
1277-
# 5. Updates project states for user, if inputs/outputs have been changed
1277+
# 5. if inputs/outputs have been changed all depending nodes shall be notified
12781278
if {"inputs", "outputs"} & _node_patch_exclude_unset.keys():
12791279
for node_uuid in updated_project["workbench"]:
12801280
await notify_project_node_update(

0 commit comments

Comments
 (0)