forked from forgejo/forgejo
Rename context.Query to context.Form (#16562)
This commit is contained in:
parent
3705168837
commit
33e0b38287
85 changed files with 393 additions and 396 deletions
|
@ -78,8 +78,8 @@ func ListDeployKeys(ctx *context.APIContext) {
|
|||
var keys []*models.DeployKey
|
||||
var err error
|
||||
|
||||
fingerprint := ctx.Query("fingerprint")
|
||||
keyID := ctx.QueryInt64("key_id")
|
||||
fingerprint := ctx.Form("fingerprint")
|
||||
keyID := ctx.FormInt64("key_id")
|
||||
if fingerprint != "" || keyID != 0 {
|
||||
keys, err = models.SearchDeployKeys(ctx.Repo.Repository.ID, keyID, fingerprint)
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue