mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-01 18:42:49 +01:00
Merge pull request #767 from phsmit/fix_email_query
Fix for wrong email query
This commit is contained in:
commit
350e0080e6
@ -629,7 +629,7 @@ func GetUserIdsByNames(names []string) []int64 {
|
|||||||
// Get all email addresses
|
// Get all email addresses
|
||||||
func GetEmailAddresses(uid int64) ([]*EmailAddress, error) {
|
func GetEmailAddresses(uid int64) ([]*EmailAddress, error) {
|
||||||
emails := make([]*EmailAddress, 0, 5)
|
emails := make([]*EmailAddress, 0, 5)
|
||||||
err := x.Where("owner_id=?", uid).Find(&emails)
|
err := x.Where("uid=?", uid).Find(&emails)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user