forked from forgejo/forgejo
Replace deprecated Id method with ID (#2655)
This commit is contained in:
parent
e1266a19c8
commit
aa962deec0
31 changed files with 84 additions and 84 deletions
|
@ -73,7 +73,7 @@ func ListGPGKeys(uid int64) ([]*GPGKey, error) {
|
|||
// GetGPGKeyByID returns public key by given ID.
|
||||
func GetGPGKeyByID(keyID int64) (*GPGKey, error) {
|
||||
key := new(GPGKey)
|
||||
has, err := x.Id(keyID).Get(key)
|
||||
has, err := x.ID(keyID).Get(key)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
} else if !has {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue