aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api/v1/packages
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/api/v1/packages
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/api/v1/packages')
-rw-r--r--routers/api/v1/packages/package.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/api/v1/packages/package.go b/routers/api/v1/packages/package.go
index 8952241222..b445e8e2f8 100644
--- a/routers/api/v1/packages/package.go
+++ b/routers/api/v1/packages/package.go
@@ -56,8 +56,8 @@ func ListPackages(ctx *context.APIContext) {
pvs, count, err := packages.SearchVersions(ctx, &packages.PackageSearchOptions{
OwnerID: ctx.Package.Owner.ID,
- Type: packageType,
- QueryName: query,
+ Type: packages.Type(packageType),
+ Name: packages.SearchValue{Value: query},
Paginator: &listOptions,
})
if err != nil {