Filter repositories without last build

This commit is contained in:
Piotr Sarnacki 2015-02-05 12:39:23 +01:00
parent 141457c4f9
commit 3d216ad9f7

View File

@ -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)
)