aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/repo/packages.go
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/repo/packages.go
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/repo/packages.go')
-rw-r--r--routers/web/repo/packages.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/routers/web/repo/packages.go b/routers/web/repo/packages.go
index f796bb0de5..b4db2d5787 100644
--- a/routers/web/repo/packages.go
+++ b/routers/web/repo/packages.go
@@ -32,10 +32,10 @@ func Packages(ctx *context.Context) {
PageSize: setting.UI.PackagesPagingNum,
Page: page,
},
- OwnerID: ctx.ContextUser.ID,
- RepoID: ctx.Repo.Repository.ID,
- QueryName: query,
- Type: packageType,
+ OwnerID: ctx.ContextUser.ID,
+ RepoID: ctx.Repo.Repository.ID,
+ Type: packages.Type(packageType),
+ Name: packages.SearchValue{Value: query},
})
if err != nil {
ctx.ServerError("SearchLatestVersions", err)