diff options
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/admin.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/admin.go b/cmd/admin.go index b5903cd4fd..74bfa5a6c6 100644 --- a/cmd/admin.go +++ b/cmd/admin.go @@ -157,10 +157,10 @@ func runRepoSyncReleases(_ *cli.Context) error { } func getReleaseCount(ctx context.Context, id int64) (int64, error) { - return repo_model.GetReleaseCountByRepoID( + return db.Count[repo_model.Release]( ctx, - id, repo_model.FindReleasesOptions{ + RepoID: id, IncludeTags: true, }, ) |