Skip to content

Commit

Permalink
fix: Correct stats object being passed in for transform
Browse files Browse the repository at this point in the history
  • Loading branch information
crookedneighbor committed Aug 10, 2016
1 parent 6d61799 commit 4390f0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/server/controllers/api-v3/members.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ function _getMembersForItem (type) {
// manually call toJSON with minimize: true so empty paths aren't returned
let membersToJSON = members.map(member => {
let memberToJSON = member.toJSON({minimize: true});
if (addComputedStats) member.addComputedStatsToJSONObj(memberToJSON);
if (addComputedStats) member.addComputedStatsToJSONObj(memberToJSON.stats);

return memberToJSON;
});
Expand Down

0 comments on commit 4390f0f

Please sign in to comment.