aboutsummaryrefslogtreecommitdiffstats
path: root/models/notification.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/notification.go')
-rw-r--r--models/notification.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/models/notification.go b/models/notification.go
index cda2916fae..f83fe63e5a 100644
--- a/models/notification.go
+++ b/models/notification.go
@@ -119,7 +119,10 @@ func createOrUpdateIssueNotifications(e Engine, issue *Issue, notificationAuthor
}
}
- issue.loadRepo(e)
+ err = issue.loadRepo(e)
+ if err != nil {
+ return err
+ }
for _, watch := range watches {
issue.Repo.Units = nil