Skip to content

Commit

Permalink
Fix conflicting change in app handler and e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
saffronjam authored and gcapizzi committed Mar 30, 2023
1 parent c84d922 commit 6c5b3c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/handlers/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ func (h *App) getPackages(r *http.Request) (*routing.Response, error) {
return nil, apierrors.LogAndReturn(logger, err, "Failed to fetch app Package(s) from Kubernetes")
}

return routing.NewResponse(http.StatusOK).WithBody(presenter.ForPackageList(packageList, h.serverURL, *r.URL)), nil
return routing.NewResponse(http.StatusOK).WithBody(presenter.ForList(presenter.ForPackage, packageList, h.serverURL, *r.URL)), nil
}

//nolint:dupl
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/apps_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ var _ = Describe("Apps", func() {
createSpaceRole("space_developer", certUserName, space1GUID)
appGUID = createApp(space1GUID, generateGUID("app"))
pkgGUID = createPackage(appGUID)
uploadTestApp(pkgGUID, procfileAppBitsFile())
uploadTestApp(pkgGUID, procfileAppBitsFile)
})

JustBeforeEach(func() {
Expand Down

0 comments on commit 6c5b3c8

Please sign in to comment.