aboutsummaryrefslogtreecommitdiff
path: root/internal/db/issue_mail.go
diff options
context:
space:
mode:
authorJoe Chen <jc@unknwon.io>2022-11-05 23:33:05 +0800
committerGitHub <noreply@github.com>2022-11-05 23:33:05 +0800
commit5fb29db2db04bc128af410867f1f602320eb5d66 (patch)
tree9d0b86702d872f8f5ab7d0691e511c52f38fde34 /internal/db/issue_mail.go
parentb5d47b969258f3d644ad797b29901eb607f6b94f (diff)
refactor(db): migrate methods off and delete deprecated methods from `user.go` (#7231)
Diffstat (limited to 'internal/db/issue_mail.go')
-rw-r--r--internal/db/issue_mail.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/db/issue_mail.go b/internal/db/issue_mail.go
index e1dbb671..d529ecdd 100644
--- a/internal/db/issue_mail.go
+++ b/internal/db/issue_mail.go
@@ -5,6 +5,7 @@
package db
import (
+ "context"
"fmt"
"github.com/unknwon/com"
@@ -124,7 +125,7 @@ func mailIssueCommentToParticipants(issue *Issue, doer *User, mentions []string)
continue
}
- to, err := GetUserByID(watchers[i].UserID)
+ to, err := Users.GetByID(context.TODO(), watchers[i].UserID)
if err != nil {
return fmt.Errorf("GetUserByID [%d]: %v", watchers[i].UserID, err)
}