summaryrefslogtreecommitdiffstats
path: root/modules/eventsource
diff options
context:
space:
mode:
authorJakobDev <jakobdev@gmx.de>2023-09-29 14:12:54 +0200
committerGitHub <noreply@github.com>2023-09-29 14:12:54 +0200
commitcf0df023be06c8acec4fc8fb05eab1d1c2e52fd1 (patch)
tree4fd233354202942b597f3591a22e5ea14fe7d0eb /modules/eventsource
parentImprove tree not found page (#26570) (diff)
downloadforgejo-cf0df023be06c8acec4fc8fb05eab1d1c2e52fd1.tar.xz
forgejo-cf0df023be06c8acec4fc8fb05eab1d1c2e52fd1.zip
More `db.DefaultContext` refactor (#27265)
Part of #27065 This PR touches functions used in templates. As templates are not static typed, errors are harder to find, but I hope I catch it all. I think some tests from other persons do not hurt.
Diffstat (limited to 'modules/eventsource')
-rw-r--r--modules/eventsource/manager_run.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/eventsource/manager_run.go b/modules/eventsource/manager_run.go
index 2785836b89..bef1a00c5b 100644
--- a/modules/eventsource/manager_run.go
+++ b/modules/eventsource/manager_run.go
@@ -71,7 +71,7 @@ loop:
now := timeutil.TimeStampNow().Add(-2)
- uidCounts, err := activities_model.GetUIDsAndNotificationCounts(then, now)
+ uidCounts, err := activities_model.GetUIDsAndNotificationCounts(ctx, then, now)
if err != nil {
log.Error("Unable to get UIDcounts: %v", err)
}