Skip to content

Commit

Permalink
Fix spread operation in TaskSchema for patchTask
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandf committed Jul 9, 2024
1 parent 0bab1d0 commit 14a1c4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/src/backend/views/Tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,10 @@ def patch(self, request, group_id, pipeline_id, task_id):
# Resolve the the proper pydantic object for this task type
TaskSchema = task_service.resolve_request_type(task_model.type)

task = TaskSchema(
task = TaskSchema(**{
**model_to_dict(task_model),
**self.request_body
)
})

# Disallow updating the type property
if (task_model.type != task.type):
Expand Down

0 comments on commit 14a1c4b

Please sign in to comment.