diff options
Diffstat (limited to 'models/gpg_key.go')
-rw-r--r-- | models/gpg_key.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/gpg_key.go b/models/gpg_key.go index 6d6f049936..8823ad0c95 100644 --- a/models/gpg_key.go +++ b/models/gpg_key.go @@ -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 { |