aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mailer/mail.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/mailer/mail.go')
-rw-r--r--modules/mailer/mail.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/mailer/mail.go b/modules/mailer/mail.go
index 9ed338ab20..195f3d3ed7 100644
--- a/modules/mailer/mail.go
+++ b/modules/mailer/mail.go
@@ -156,7 +156,7 @@ func SendResetPasswdMail(r macaron.Render, u *models.User) {
// SendIssueNotifyMail sends mail notification of all watchers of repository.
func SendIssueNotifyMail(u, owner *models.User, repo *models.Repository, issue *models.Issue) ([]string, error) {
- ws, err := models.GetWatchers(repo.Id)
+ ws, err := models.GetWatchers(repo.ID)
if err != nil {
return nil, errors.New("mail.NotifyWatchers(GetWatchers): " + err.Error())
}
@@ -167,7 +167,7 @@ func SendIssueNotifyMail(u, owner *models.User, repo *models.Repository, issue *
if u.Id == uid {
continue
}
- u, err := models.GetUserById(uid)
+ u, err := models.GetUserByID(uid)
if err != nil {
return nil, errors.New("mail.NotifyWatchers(GetUserById): " + err.Error())
}