From 66e2016eeb42864ba26918798faa5ec32da2f0c6 Mon Sep 17 00:00:00 2001 From: Peter Smit Date: Sun, 21 Dec 2014 09:16:56 +0200 Subject: [PATCH] Fix for wrong email query Changing EmailAdress.OwnerId to EmailAddress.Uid should have accompanied this change --- models/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/user.go b/models/user.go index 2537a3e6..651168eb 100644 --- a/models/user.go +++ b/models/user.go @@ -629,7 +629,7 @@ func GetUserIdsByNames(names []string) []int64 { // Get all email addresses func GetEmailAddresses(uid int64) ([]*EmailAddress, error) { emails := make([]*EmailAddress, 0, 5) - err := x.Where("owner_id=?", uid).Find(&emails) + err := x.Where("uid=?", uid).Find(&emails) if err != nil { return nil, err }