diff options
author | KN4CK3R <admin@oldschoolhack.me> | 2022-08-07 12:09:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-07 18:09:54 +0800 |
commit | f55af4675cbcb0170693caaeb5faa7707836de4c (patch) | |
tree | 8942f12d712396bd8c3fd381c5e33a8bab52edc8 /routers/api/packages/nuget | |
parent | d4326afb25ae84131d6b9fd61d6f869828f7704b (diff) | |
download | gitea-f55af4675cbcb0170693caaeb5faa7707836de4c.tar.gz gitea-f55af4675cbcb0170693caaeb5faa7707836de4c.zip |
Add support for Pub packages (#20560)
* Added support for Pub packages.
* Update docs/content/doc/packages/overview.en-us.md
Co-authored-by: Gergely Nagy <algernon@users.noreply.github.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Gergely Nagy <algernon@users.noreply.github.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'routers/api/packages/nuget')
-rw-r--r-- | routers/api/packages/nuget/nuget.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/packages/nuget/nuget.go b/routers/api/packages/nuget/nuget.go index 4d630708b9..81ea28bcad 100644 --- a/routers/api/packages/nuget/nuget.go +++ b/routers/api/packages/nuget/nuget.go @@ -102,7 +102,7 @@ func RegistrationLeaf(ctx *context.Context) { packageName := ctx.Params("id") packageVersion := strings.TrimSuffix(ctx.Params("version"), ".json") - pv, err := packages_model.GetVersionByNameAndVersion(db.DefaultContext, ctx.Package.Owner.ID, packages_model.TypeNuGet, packageName, packageVersion) + pv, err := packages_model.GetVersionByNameAndVersion(ctx, ctx.Package.Owner.ID, packages_model.TypeNuGet, packageName, packageVersion) if err != nil { if err == packages_model.ErrPackageNotExist { apiError(ctx, http.StatusNotFound, err) |