Skip to content

Commit 9136b34

Browse files
fix field name
1 parent 56099a8 commit 9136b34

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import sqlalchemy as sa
44
from aiohttp import web
55
from models_library.projects import ProjectID
6-
from models_library.projects_nodes import Node
6+
from models_library.projects_nodes import PartialNode
77
from models_library.projects_nodes_io import NodeID
88
from simcore_postgres_database.utils_repos import transaction_context
99
from simcore_postgres_database.webserver_models import projects_nodes
@@ -21,12 +21,12 @@ async def update(
2121
*,
2222
project_id: ProjectID,
2323
node_id: NodeID,
24-
node: Node,
24+
node: PartialNode,
2525
) -> None:
2626
async with transaction_context(get_asyncpg_engine(app), connection) as conn:
2727
await conn.stream(
2828
projects_nodes.update()
29-
.values(**NodeDB.model_construct(**node.model_dump()).model_dump(mode="json", exclude_none=True))
29+
.values(**NodeDB.model_construct(**node.model_dump()).model_dump(mode="json", exclude_unset=True, exclude_none=True))
3030
.where(
3131
sa.and_(
3232
projects_nodes.c.project_uuid == f"{project_id}",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class NodeDB(BaseModel):
117117
input_access: dict[str, Any]
118118
input_nodes: list[NodeID]
119119
inputs: dict[str, Any]
120-
inouts_units: dict[str, Any]
120+
inputs_units: dict[str, Any]
121121
output_nodes: list[NodeID]
122122
outputs: dict[str, Any]
123123
run_hash: str | None

0 commit comments

Comments
 (0)