diff --git a/lib/cartodb/api/map/clustered-features-layergroup-controller.js b/lib/cartodb/api/map/clustered-features-layergroup-controller.js index 48e56b32..5c17c5b1 100644 --- a/lib/cartodb/api/map/clustered-features-layergroup-controller.js +++ b/lib/cartodb/api/map/clustered-features-layergroup-controller.js @@ -42,6 +42,7 @@ module.exports = class AggregatedFeaturesLayergroupController { credentials(), authorize(this.authBackend), dbConnSetup(this.pgConnection), + // TODO: create its rate limit rateLimit(this.userLimitsBackend, RATE_LIMIT_ENDPOINTS_GROUPS.ATTRIBUTES), cleanUpQueryParams([ 'aggregation' ]), createMapStoreMapConfigProvider( diff --git a/lib/cartodb/backends/cluster.js b/lib/cartodb/backends/cluster.js index c90f176d..c9776eba 100644 --- a/lib/cartodb/backends/cluster.js +++ b/lib/cartodb/backends/cluster.js @@ -6,6 +6,7 @@ const debug = require('debug')('backend:cluster'); const AggregationMapConfig = require('../models/aggregation/aggregation-mapconfig'); module.exports = class ClusterBackend { + // TODO: reduce complexity // jshint maxcomplexity: 17 getClusterFeatures (mapConfigProvider, params, callback) { mapConfigProvider.getMapConfig((err, _mapConfig) => {