Skip to content

Commit 26f1e42

Browse files
LordofAvernusffffwh
authored and
ffffwh
committed
Fix a typo
1 parent 6b91d3f commit 26f1e42

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

api/handler/v2/job.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -634,8 +634,8 @@ func buildMysqlTableConfigMap(configs []*models.TableConfig) []map[string]interf
634634
configMap := make(map[string]interface{})
635635
if len(c.ColumnMapFrom) != 0 {
636636
configMap["ColumnMapFrom"] = c.ColumnMapFrom
637-
if len(c.ColumnMapTO) != 0 {
638-
configMap["ColumnMapTo"] = c.ColumnMapTO
637+
if len(c.ColumnMapTo) != 0 {
638+
configMap["ColumnMapTo"] = c.ColumnMapTo
639639
}
640640
}
641641
addNotRequiredParamToMap(configMap, c.TableName, "TableName")
@@ -951,7 +951,7 @@ func buildSrcTaskDetail(taskName string, internalTaskConfig common.DtleTaskConfi
951951
TableRegex: tb.TableRegex,
952952
TableRename: tb.TableRename,
953953
ColumnMapFrom: tb.ColumnMapFrom,
954-
ColumnMapTO: tb.ColumnMapTo,
954+
ColumnMapTo: tb.ColumnMapTo,
955955
Where: tb.Where,
956956
})
957957
}

api/models/job_v2.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ type TableConfig struct {
186186
TableRegex string `json:"table_regex"`
187187
TableRename string `json:"table_rename"`
188188
ColumnMapFrom []string `json:"column_map_from"`
189-
ColumnMapTO []string `json:"column_map_to"`
189+
ColumnMapTo []string `json:"column_map_to"`
190190
Where string `json:"where"`
191191
}
192192
type DatabaseConnectionConfig struct {

0 commit comments

Comments
 (0)