Skip to content

Commit 70cf23d

Browse files
committed
use email.LowerEmail
1 parent a1ea770 commit 70cf23d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

models/fixtures/email_address.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
-
8282
id: 11
8383
uid: 4
84-
84+
8585
lower_email: [email protected]
8686
is_activated: true
8787
is_primary: true

models/user/user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1211,7 +1211,7 @@ func GetUsersByEmails(ctx context.Context, emails []string) (*EmailUserMap, erro
12111211
for _, email := range emailAddresses {
12121212
user := users[email.UID]
12131213
if user != nil {
1214-
results[email.Email] = user
1214+
results[email.LowerEmail] = user
12151215
}
12161216
}
12171217
}

0 commit comments

Comments
 (0)