Filter repositories without last build
This commit is contained in:
parent
141457c4f9
commit
3d216ad9f7
|
@ -12,7 +12,9 @@ Route = TravisRoute.extend
|
|||
Authorization: 'token ' + @auth.token()
|
||||
}
|
||||
}).then (response) ->
|
||||
response.repositories.sortBy('last_build.finished_at').map( (repo) ->
|
||||
response.repositories.sortBy('last_build.finished_at').filter( (repo) ->
|
||||
repo.last_build
|
||||
).map( (repo) ->
|
||||
Ember.Object.create(repo)
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user