summaryrefslogtreecommitdiffstats
path: root/modules/indexer/stats
diff options
context:
space:
mode:
Diffstat (limited to 'modules/indexer/stats')
-rw-r--r--modules/indexer/stats/db.go2
-rw-r--r--modules/indexer/stats/indexer_test.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/indexer/stats/db.go b/modules/indexer/stats/db.go
index 068626c4fa..9bbdcad60d 100644
--- a/modules/indexer/stats/db.go
+++ b/modules/indexer/stats/db.go
@@ -21,7 +21,7 @@ func (db *DBIndexer) Index(id int64) error {
ctx, _, finished := process.GetManager().AddContext(graceful.GetManager().ShutdownContext(), fmt.Sprintf("Stats.DB Index Repo[%d]", id))
defer finished()
- repo, err := repo_model.GetRepositoryByID(id)
+ repo, err := repo_model.GetRepositoryByID(ctx, id)
if err != nil {
return err
}
diff --git a/modules/indexer/stats/indexer_test.go b/modules/indexer/stats/indexer_test.go
index f9a1bc520a..bc6c4cd7f8 100644
--- a/modules/indexer/stats/indexer_test.go
+++ b/modules/indexer/stats/indexer_test.go
@@ -36,7 +36,7 @@ func TestRepoStatsIndex(t *testing.T) {
err := Init()
assert.NoError(t, err)
- repo, err := repo_model.GetRepositoryByID(1)
+ repo, err := repo_model.GetRepositoryByID(db.DefaultContext, 1)
assert.NoError(t, err)
err = UpdateRepoIndexer(repo)