Skip to content

Commit

Permalink
fix(ui-extensions): use the new version response when returning
Browse files Browse the repository at this point in the history
  • Loading branch information
reubenmiller committed Apr 6, 2024
1 parent 9a42da0 commit b29306b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/c8y/uiExtension.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,9 @@ func (s *UIExtensionService) CreateExtension(ctx context.Context, application *A
}

// Upload binary
binaryVersion, resp, err := s.client.ApplicationVersions.CreateVersion(ctx, app.ID, filename, *opt.Version)
binaryVersion, versionResp, err := s.client.ApplicationVersions.CreateVersion(ctx, app.ID, filename, *opt.Version)
if err != nil {
return nil, resp, err
return nil, versionResp, err
}

if binaryVersion != nil {
Expand All @@ -197,7 +197,7 @@ func (s *UIExtensionService) CreateExtension(ctx context.Context, application *A
}
}

return binaryVersion, resp, err
return binaryVersion, versionResp, err
}

func (s *UIExtensionService) SetActive(ctx context.Context, appID string, binaryID string) (*Application, *Response, error) {
Expand Down

0 comments on commit b29306b

Please sign in to comment.