summaryrefslogtreecommitdiffstats
path: root/routers/web/admin
diff options
context:
space:
mode:
authorKN4CK3R <admin@oldschoolhack.me>2022-04-06 03:32:09 +0200
committerGitHub <noreply@github.com>2022-04-06 03:32:09 +0200
commit5e242e021b9f32d2d136e4f3324cb56be415f484 (patch)
tree01bde0162b15ecb069d13d53413dfbb5d514a945 /routers/web/admin
parent8ddcd37f13411f38a7e4bbd1c1f931436af255b6 (diff)
downloadgitea-5e242e021b9f32d2d136e4f3324cb56be415f484.tar.gz
gitea-5e242e021b9f32d2d136e4f3324cb56be415f484.zip
Package registry changes (#19305)
* removed debug logs * fixed SELECT * removed unneeded error type * use common SearchVersions method * remove empty container upload versions * return err
Diffstat (limited to 'routers/web/admin')
-rw-r--r--routers/web/admin/packages.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/routers/web/admin/packages.go b/routers/web/admin/packages.go
index 22be37526f..79bf025dd2 100644
--- a/routers/web/admin/packages.go
+++ b/routers/web/admin/packages.go
@@ -31,9 +31,9 @@ func Packages(ctx *context.Context) {
sort := ctx.FormTrim("sort")
pvs, total, err := packages_model.SearchVersions(ctx, &packages_model.PackageSearchOptions{
- QueryName: query,
- Type: packageType,
- Sort: sort,
+ Type: packages_model.Type(packageType),
+ Name: packages_model.SearchValue{Value: query},
+ Sort: sort,
Paginator: &db.ListOptions{
PageSize: setting.UI.PackagesPagingNum,
Page: page,