mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-26 15:25:43 +03:00
parent
30a37311f8
commit
0baaa7728a
1 changed files with 1 additions and 1 deletions
|
@ -895,7 +895,7 @@ func GetUserByKeyID(keyID int64) (*User, error) {
|
|||
var user User
|
||||
has, err := x.Join("INNER", "public_key", "`public_key`.owner_id = `user`.id").
|
||||
Where("`public_key`.id=?", keyID).
|
||||
Get(user)
|
||||
Get(&user)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue