diff options
Diffstat (limited to 'services/asymkey/ssh_key.go')
-rw-r--r-- | services/asymkey/ssh_key.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/asymkey/ssh_key.go b/services/asymkey/ssh_key.go index 204d9c58f3..1c3bf09b08 100644 --- a/services/asymkey/ssh_key.go +++ b/services/asymkey/ssh_key.go @@ -13,7 +13,7 @@ import ( // DeletePublicKey deletes SSH key information both in database and authorized_keys file. func DeletePublicKey(ctx context.Context, doer *user_model.User, id int64) (err error) { - key, err := asymkey_model.GetPublicKeyByID(id) + key, err := asymkey_model.GetPublicKeyByID(ctx, id) if err != nil { return err } |