From 830211444bb250ff35d1a91f5da55485030d1b9e Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Thu, 10 Dec 2015 11:30:35 +0100 Subject: [PATCH] Make only one query to jobs --- app/controllers/repos.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/repos.js b/app/controllers/repos.js index cd46c791..6902dbd7 100644 --- a/app/controllers/repos.js +++ b/app/controllers/repos.js @@ -117,7 +117,7 @@ var Controller = Ember.Controller.extend({ queuedJobs: function() { var result; - result = this.get('store').filter('job', {}, function(job) { + result = this.get('store').filter('job', function(job) { return ['created'].indexOf(job.get('state')) !== -1; }); result.set('isLoaded', false);