Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 1930618

Browse files
committed
Merge pull request #559 from appirio-tech/feature/sup-2577-bug-hunt-as-win-stats
SUP-2577, Bug Hunt should show wins not ratings as the main metric in profile and dashboard
2 parents fb57fde + 5810492 commit 1930618

File tree

2 files changed

+360
-22
lines changed

2 files changed

+360
-22
lines changed

app/services/userStats.service.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,10 @@
100100
return _.reduce(trackRanks, function(result, subtracks, track) {
101101
if (Array.isArray(subtracks) && subtracks.length) {
102102
if (track === 'DEVELOP') {
103-
_.remove(subtracks, function(subtrackObj) {
104-
return subtrackObj.subTrack === 'COPILOT_POSTING';
103+
var filtered = _.filter(subtracks, function(subtrackObj) {
104+
return subtrackObj.subTrack !== 'COPILOT_POSTING';
105105
});
106+
return result.concat(filtered);
106107
}
107108

108109
return result.concat(subtracks);

0 commit comments

Comments
 (0)