diff options
Diffstat (limited to 'cmd/admin.go')
-rw-r--r-- | cmd/admin.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cmd/admin.go b/cmd/admin.go index f6f3e22b97..bc469cdae3 100644 --- a/cmd/admin.go +++ b/cmd/admin.go @@ -351,9 +351,11 @@ func runRepoSyncReleases(c *cli.Context) error { log.Trace("Synchronizing repository releases (this may take a while)") for page := 1; ; page++ { repos, count, err := models.SearchRepositoryByName(&models.SearchRepoOptions{ - Page: page, - PageSize: models.RepositoryListDefaultPageSize, - Private: true, + ListOptions: models.ListOptions{ + PageSize: models.RepositoryListDefaultPageSize, + Page: page, + }, + Private: true, }) if err != nil { return fmt.Errorf("SearchRepositoryByName: %v", err) |