From e80c0228749ee23ab43834c4dfad1707fa3b76fb Mon Sep 17 00:00:00 2001 From: Lisa P Date: Tue, 13 Oct 2015 12:11:25 +0200 Subject: [PATCH] remove wrong sorting param --- app/routes/branches.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/routes/branches.coffee b/app/routes/branches.coffee index 29114be6..c2762643 100644 --- a/app/routes/branches.coffee +++ b/app/routes/branches.coffee @@ -14,7 +14,7 @@ Route = TravisRoute.extend if @get('auth.signedIn') 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 defaultBranch = allTheBranches.filter (item, index) -> @@ -22,7 +22,7 @@ Route = TravisRoute.extend allTheBranches 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