Skip to content

Commit

Permalink
add product to release query
Browse files Browse the repository at this point in the history
Add the product ID to the upload function's call to Release.Get in order to return the correct release in the event the user is using an Admin token which can see releases for multiple products.
  • Loading branch information
kernel-sanders authored Dec 6, 2024
1 parent 03937d3 commit 3fa3a56
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/keygenext/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,10 @@ func (r *Release) Get() error {
// TODO(ezekg) Add support for custom query params to SDK
type querystring struct {
Package string `url:"package,omitempty"`
Product string `url:"product,omitempty"`
}

qs := querystring{Package: *r.PackageID}
qs := querystring{Package: *r.PackageID, Product: Product}
values, err := query.Values(qs)
if err != nil {
return err
Expand Down

0 comments on commit 3fa3a56

Please sign in to comment.