summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/admin.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/admin.go b/cmd/admin.go
index e4210213cd..7463b21d81 100644
--- a/cmd/admin.go
+++ b/cmd/admin.go
@@ -778,6 +778,7 @@ func runRepoSyncReleases(_ *cli.Context) error {
func getReleaseCount(id int64) (int64, error) {
return repo_model.GetReleaseCountByRepoID(
+ db.DefaultContext,
id,
repo_model.FindReleasesOptions{
IncludeTags: true,