1
0
Fork 0

bug fixed caused by #153 (#154)

This commit is contained in:
Lunny Xiao 2016-11-12 16:30:46 +08:00 committed by Thibault Meyer
parent 30a37311f8
commit 0baaa7728a

View file

@ -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
}