Skip to content

Commit

Permalink
Appease the linter
Browse files Browse the repository at this point in the history
  • Loading branch information
mzikherman committed Jul 11, 2016
1 parent 14eca96 commit a93b450
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions schema/filter_artworks.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ export const FilterArtworksType = new GraphQLObjectType({
},
aggregations: {
type: new GraphQLList(ArtworksAggregationResultsType),
resolve: ({ aggregations }) =>
map(omit(aggregations, ['total', 'followed_artists']), (counts, slice) => ({ slice, counts })),
resolve: ({ aggregations }) => {
const whitelistedAggregations = omit(aggregations, ['total', 'followed_artists']);
return map(whitelistedAggregations, (counts, slice) => ({ slice, counts }));
},
},
}),
});
Expand Down

0 comments on commit a93b450

Please sign in to comment.