remove wrong sorting param
This commit is contained in:
parent
ebc7c5a1ed
commit
e80c022874
|
@ -14,7 +14,7 @@ Route = TravisRoute.extend
|
||||||
if @get('auth.signedIn')
|
if @get('auth.signedIn')
|
||||||
options.headers = { Authorization: "token #{@auth.token()}" }
|
options.headers = { Authorization: "token #{@auth.token()}" }
|
||||||
|
|
||||||
$.ajax("#{apiEndpoint}/v3/repo/#{repoId}/branches?include=build.commit&limit=100&sort_by=exists_on_github", options).then (response) ->
|
$.ajax("#{apiEndpoint}/v3/repo/#{repoId}/branches?include=build.commit&limit=100", options).then (response) ->
|
||||||
allTheBranches = response.branches
|
allTheBranches = response.branches
|
||||||
|
|
||||||
defaultBranch = allTheBranches.filter (item, index) ->
|
defaultBranch = allTheBranches.filter (item, index) ->
|
||||||
|
@ -22,7 +22,7 @@ Route = TravisRoute.extend
|
||||||
|
|
||||||
allTheBranches
|
allTheBranches
|
||||||
unless defaultBranch.length == 1
|
unless defaultBranch.length == 1
|
||||||
$.ajax("#{apiEndpoint}/v3/repo/#{repoId}/branches?include=build.commit&limit=100&offset=1&sort_by=exists_on_github", options).then (response) ->
|
$.ajax("#{apiEndpoint}/v3/repo/#{repoId}/branches?include=build.commit&limit=100&offset=1", options).then (response) ->
|
||||||
allTheBranches = allTheBranches.concat(response.branches)
|
allTheBranches = allTheBranches.concat(response.branches)
|
||||||
|
|
||||||
allTheBranches
|
allTheBranches
|
||||||
|
|
Loading…
Reference in New Issue
Block a user