Skip to content

Commit 1c6876a

Browse files
committed
add missing filter dimensions to category
1 parent 1124cff commit 1c6876a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

app/scripts/services/category.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,15 @@ angular.module('crunchinatorApp.models').service('Category', function(Model, API
7676
}),
7777
byStatuses: crossCategories.dimension(function(category) {
7878
return _.pluck(category.companies, 'status');
79+
}),
80+
byAcquiredOn: crossCategories.dimension(function(category){
81+
return _.compact(_.pluck(category.companies, 'acquired_on'));
82+
}),
83+
byFundingRoundMonth: crossCategories.dimension(function(category){
84+
return _.compact(_.pluck(_.flatten(_.pluck(category.companies, 'funding_rounds')), 'funded_on'));
85+
}),
86+
byFoundedOn: crossCategories.dimension(function(category){
87+
return _.compact(_.pluck(category.companies, 'founded_on'));
7988
})
8089
};
8190

0 commit comments

Comments
 (0)