diff --git a/app/propagationPolicyTemplate.go b/app/propagationPolicyTemplate.go index bcc002b..ccb4df9 100644 --- a/app/propagationPolicyTemplate.go +++ b/app/propagationPolicyTemplate.go @@ -90,7 +90,7 @@ func ListPropagationPolicyTemplate(c *gin.Context) { for rows.Next() { var ppt PropagationPolicyTemplate - err := rows.Scan(&ppt.TemplateId, &ppt.TemplateName, &ppt.Labels, &ppt.ScheduleType, &ppt.DivisionPreference, &ppt.ClusterPreference) + err := rows.Scan(&ppt.TemplateName, &ppt.Labels, &ppt.ScheduleType, &ppt.DivisionPreference, &ppt.ClusterPreference, &ppt.TemplateId) if err != nil { Response(c, http.StatusBadRequest, "query failed!", err) return