summaryrefslogtreecommitdiffstats
path: root/models/user_mail.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/user_mail.go')
-rw-r--r--models/user_mail.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/user_mail.go b/models/user_mail.go
index ba69d9a470..39d1070c35 100644
--- a/models/user_mail.go
+++ b/models/user_mail.go
@@ -153,7 +153,7 @@ func DeleteEmailAddress(email *EmailAddress) (err error) {
UID: email.UID,
}
if email.ID > 0 {
- deleted, err = x.Id(email.ID).Delete(&address)
+ deleted, err = x.ID(email.ID).Delete(&address)
} else {
deleted, err = x.
Where("email=?", email.Email).
@@ -222,7 +222,7 @@ func MakeEmailPrimary(email *EmailAddress) error {
}
user.Email = email.Email
- if _, err = sess.Id(user.ID).Cols("email").Update(user); err != nil {
+ if _, err = sess.ID(user.ID).Cols("email").Update(user); err != nil {
return err
}