diff options
Diffstat (limited to 'modules/notification/ui/ui.go')
-rw-r--r-- | modules/notification/ui/ui.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/notification/ui/ui.go b/modules/notification/ui/ui.go index 25f015d0e5..fd44cd15fd 100644 --- a/modules/notification/ui/ui.go +++ b/modules/notification/ui/ui.go @@ -6,6 +6,7 @@ package ui import ( "code.gitea.io/gitea/models" + "code.gitea.io/gitea/models/db" repo_model "code.gitea.io/gitea/models/repo" user_model "code.gitea.io/gitea/models/user" "code.gitea.io/gitea/modules/graceful" @@ -122,7 +123,7 @@ func (ns *notificationService) NotifyNewPullRequest(pr *models.PullRequest, ment return } toNotify := make(map[int64]struct{}, 32) - repoWatchers, err := models.GetRepoWatchersIDs(pr.Issue.RepoID) + repoWatchers, err := repo_model.GetRepoWatchersIDs(db.DefaultContext, pr.Issue.RepoID) if err != nil { log.Error("GetRepoWatchersIDs: %v", err) return |