diff options
author | KN4CK3R <admin@oldschoolhack.me> | 2022-04-06 03:32:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-06 03:32:09 +0200 |
commit | 5e242e021b9f32d2d136e4f3324cb56be415f484 (patch) | |
tree | 01bde0162b15ecb069d13d53413dfbb5d514a945 /routers/api/packages/nuget | |
parent | 8ddcd37f13411f38a7e4bbd1c1f931436af255b6 (diff) | |
download | gitea-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/packages/nuget')
-rw-r--r-- | routers/api/packages/nuget/nuget.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/routers/api/packages/nuget/nuget.go b/routers/api/packages/nuget/nuget.go index 3af7155fae..013c0c1e33 100644 --- a/routers/api/packages/nuget/nuget.go +++ b/routers/api/packages/nuget/nuget.go @@ -39,9 +39,9 @@ func ServiceIndex(ctx *context.Context) { // SearchService https://docs.microsoft.com/en-us/nuget/api/search-query-service-resource#search-for-packages func SearchService(ctx *context.Context) { pvs, count, err := packages_model.SearchVersions(ctx, &packages_model.PackageSearchOptions{ - OwnerID: ctx.Package.Owner.ID, - Type: string(packages_model.TypeNuGet), - QueryName: ctx.FormTrim("q"), + OwnerID: ctx.Package.Owner.ID, + Type: packages_model.TypeNuGet, + Name: packages_model.SearchValue{Value: ctx.FormTrim("q")}, Paginator: db.NewAbsoluteListOptions( ctx.FormInt("skip"), ctx.FormInt("take"), |