Skip to content

Commit

Permalink
fix: 修复 create_mock_task api 问题 TencentBlueKing#22
Browse files Browse the repository at this point in the history
  • Loading branch information
normal-wls committed Sep 18, 2024
1 parent b471922 commit 18d06a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bkflow/apigw/serializers/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def validate(self, attrs):
raise serializers.ValidationError(
f"mock data of node {node_id} with mock_data_id {mock_data_id} not found"
)
outputs[node_id] = mock_data[mock_data_id].get("data", {})
outputs[node_id] = mock_data[mock_data_id]
attrs["mock_data"]["outputs"] = outputs
return attrs

Expand Down

0 comments on commit 18d06a3

Please sign in to comment.