aboutsummaryrefslogtreecommitdiffstats
path: root/models/notification.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2018-10-25 18:55:16 +0800
committerGitHub <noreply@github.com>2018-10-25 18:55:16 +0800
commit5f938c0c7870a112aa9ab65b6f4fd1f47eb34f51 (patch)
tree517927f7777d3aad8ff97c798ab8a6520d714559 /models/notification.go
parent554581f84855eda4589a4f66bb560a5ca00e63ff (diff)
downloadgitea-5f938c0c7870a112aa9ab65b6f4fd1f47eb34f51.tar.gz
gitea-5f938c0c7870a112aa9ab65b6f4fd1f47eb34f51.zip
Fix sqlite lock (#5176)
* fix sqlite lock * fix sqlite lock on getUnitType
Diffstat (limited to 'models/notification.go')
-rw-r--r--models/notification.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/notification.go b/models/notification.go
index 8c36c0c5c9..cda2916fae 100644
--- a/models/notification.go
+++ b/models/notification.go
@@ -123,10 +123,10 @@ func createOrUpdateIssueNotifications(e Engine, issue *Issue, notificationAuthor
for _, watch := range watches {
issue.Repo.Units = nil
- if issue.IsPull && !issue.Repo.CheckUnitUser(watch.UserID, false, UnitTypePullRequests) {
+ if issue.IsPull && !issue.Repo.checkUnitUser(e, watch.UserID, false, UnitTypePullRequests) {
continue
}
- if !issue.IsPull && !issue.Repo.CheckUnitUser(watch.UserID, false, UnitTypeIssues) {
+ if !issue.IsPull && !issue.Repo.checkUnitUser(e, watch.UserID, false, UnitTypeIssues) {
continue
}