This is an automated email from the ASF dual-hosted git repository. narro pushed a commit to branch fix-tapd in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
commit b7252e8841bfae66136edb1146e94fab18bb2426 Author: narro wizard <[email protected]> AuthorDate: Wed Apr 23 09:08:04 2025 +0800 fix(backend): correct field mapping for TapdScopeConfig - Update the mapstructure tag for ScopeConfig field from "pageSize" to "scopeConfig" - This change ensures proper deserialization of ScopeConfig data in TapdOptions struct --- backend/plugins/tapd/tasks/task_data.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/plugins/tapd/tasks/task_data.go b/backend/plugins/tapd/tasks/task_data.go index 467d055a8..a13f61244 100644 --- a/backend/plugins/tapd/tasks/task_data.go +++ b/backend/plugins/tapd/tasks/task_data.go @@ -31,7 +31,7 @@ type TapdOptions struct { PageSize uint64 `json:"pageSize,omitempty" mapstructure:"pageSize,omitempty"` CstZone *time.Location `json:"cstZone,omitempty" mapstructure:"cstZone,omitempty"` ScopeConfigId uint64 `json:"scopeConfigId,omitempty" mapstructure:"scopeConfigId,omitempty"` - ScopeConfig *models.TapdScopeConfig `json:"scopeConfig,omitempty" mapstructure:"pageSize,omitempty"` + ScopeConfig *models.TapdScopeConfig `json:"scopeConfig,omitempty" mapstructure:"scopeConfig,omitempty"` } type TapdTaskData struct {
