This is an automated email from the ASF dual-hosted git repository.
klesh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new 53dab9112 fix(backend): correct field mapping for TapdScopeConfig
(#8399)
53dab9112 is described below
commit 53dab91123b6a4f7e219ebec0105ac3265063193
Author: NaRro <[email protected]>
AuthorDate: Wed Apr 23 09:28:05 2025 +0800
fix(backend): correct field mapping for TapdScopeConfig (#8399)
- 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 {