fix(http): org response returns empty array

pull/10616/head
Chris Goller 2018-09-16 22:24:48 -05:00
parent 31af11e3f8
commit fbb1cc21b2
1 changed files with 1 additions and 0 deletions

View File

@ -53,6 +53,7 @@ func newOrgsResponse(orgs []*platform.Organization) *orgsResponse {
Links: map[string]string{
"self": "/v2/orgs",
},
Organizations: []*orgResponse{},
}
for _, org := range orgs {
res.Organizations = append(res.Organizations, newOrgResponse(org))