Skip to content

Commit

Permalink
Add includes to stack presenter
Browse files Browse the repository at this point in the history
  • Loading branch information
klapkov committed Nov 6, 2024
1 parent a40ae8b commit d4edf9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion api/handlers/service_offering_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ var _ = Describe("ServiceOffering", func() {
MatchJSONPath("$.included.service_brokers[0].guid", "broker-guid"),
)))
})

})

When("the request is invalid", func() {
Expand Down
3 changes: 2 additions & 1 deletion api/presenter/stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"net/url"

"code.cloudfoundry.org/korifi/api/repositories"
"code.cloudfoundry.org/korifi/model"
)

const (
Expand All @@ -24,7 +25,7 @@ type StackLinks struct {
Self Link `json:"self"`
}

func ForStack(stackRecord repositories.StackRecord, baseURL url.URL) StackResponse {
func ForStack(stackRecord repositories.StackRecord, baseURL url.URL, includes ...model.IncludedResource) StackResponse {
return StackResponse{
GUID: stackRecord.GUID,
CreatedAt: formatTimestamp(&stackRecord.CreatedAt),
Expand Down

0 comments on commit d4edf9e

Please sign in to comment.