diff --git a/src/api/src/backend/services/TaskService.py b/src/api/src/backend/services/TaskService.py index b312a2b5..cd74898c 100644 --- a/src/api/src/backend/services/TaskService.py +++ b/src/api/src/backend/services/TaskService.py @@ -101,7 +101,7 @@ def create(self, pipeline, request): code=getattr(request, "code", None), command=getattr(request, "command", None), context=context, - conditions=getattr(request, "conditions", []).model_dump(), + conditions=[c.model_dump() for c in getattr(request, "conditions", [])], data=getattr(request, "data", None), description=request.description, destination=destination,