diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2016-11-12 16:30:46 +0800 |
---|---|---|
committer | Thibault Meyer <0xbaadf00d@users.noreply.github.com> | 2016-11-12 09:30:46 +0100 |
commit | 0baaa7728afe121ff19f7b22583558febe16e83b (patch) | |
tree | 017194433b72cdbda3ca2a3c2ccc37c92ce7cdc2 /models/user.go | |
parent | 30a37311f85b3058c8c5b94427208281568eba91 (diff) | |
download | gitea-0baaa7728afe121ff19f7b22583558febe16e83b.tar.gz gitea-0baaa7728afe121ff19f7b22583558febe16e83b.zip |
bug fixed caused by #153 (#154)
Diffstat (limited to 'models/user.go')
-rw-r--r-- | models/user.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/user.go b/models/user.go index 9437d40a52..8d73e180f0 100644 --- a/models/user.go +++ b/models/user.go @@ -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 } |