Explorar el Código

Fix the JSON field names for MigrateRepoForm

For some reason, the field names for Private and Mirror got swapped.
Nathan Zadoks hace 10 años
padre
commit
f1aa4c0524
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      modules/auth/repo_form.go

+ 2 - 2
modules/auth/repo_form.go

@@ -37,8 +37,8 @@ type MigrateRepoForm struct {
 	AuthPassword string `json:"auth_password"`
 	Uid          int64  `json:"uid" binding:"Required"`
 	RepoName     string `json:"repo_name" binding:"Required;AlphaDashDot;MaxSize(100)"`
-	Private      bool   `json:"mirror"`
-	Mirror       bool   `json:"private"`
+	Mirror       bool   `json:"mirror"`
+	Private      bool   `json:"private"`
 	Description  string `json:"description" binding:"MaxSize(255)"`
 }