owner page: fix API query to eager load repositories for all owners, not just organizations

This commit is contained in:
Konstantin Haase 2015-10-15 09:09:34 +02:00
parent a048e1fca1
commit 718bf96a87

View File

@ -13,7 +13,7 @@ Route = TravisRoute.extend
options = {}
if @get('auth.signedIn')
options.headers = { Authorization: "token #{@auth.token()}" }
$.ajax(config.apiEndpoint + "/v3/owner/#{transition.params.owner.owner}?include=organization.repositories,repository.default_branch,build.commit", options).then (response) ->
$.ajax(config.apiEndpoint + "/v3/owner/#{transition.params.owner.owner}?include=owner.repositories,repository.default_branch,build.commit", options).then (response) ->
response
`export default Route`