aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api/v1/notify/repo.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api/v1/notify/repo.go')
-rw-r--r--routers/api/v1/notify/repo.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/api/v1/notify/repo.go b/routers/api/v1/notify/repo.go
index 0f6b90b05d..4e9dd806de 100644
--- a/routers/api/v1/notify/repo.go
+++ b/routers/api/v1/notify/repo.go
@@ -115,7 +115,7 @@ func ListRepoNotifications(ctx *context.APIContext) {
return
}
- nl, err := models.GetNotifications(opts)
+ nl, err := models.GetNotifications(ctx, opts)
if err != nil {
ctx.InternalServerError(err)
return
@@ -203,7 +203,7 @@ func ReadRepoNotifications(ctx *context.APIContext) {
opts.Status = statusStringsToNotificationStatuses(statuses, []string{"unread"})
log.Error("%v", opts.Status)
}
- nl, err := models.GetNotifications(opts)
+ nl, err := models.GetNotifications(ctx, opts)
if err != nil {
ctx.InternalServerError(err)
return