0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-23 15:53:07 -05:00

Fix the JSON field names for MigrateRepoForm

For some reason, the field names for Private and Mirror got swapped.
This commit is contained in:
Nathan Zadoks 2015-10-30 02:44:45 +01:00
parent 31b375782b
commit f1aa4c0524

View file

@ -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)"`
}