Windshaft-cartodb/lib/cartodb/models/aggregation/vector-aggregation.js
Daniel García Aubert 6f04214f5d Simplify to pass test
2017-12-01 17:06:03 +01:00

14 lines
393 B
JavaScript

const BaseAggregation = require('./base-aggregation');
module.exports = class VectorAggregation extends BaseAggregation {
sql (options) {
return vectorAggregationQueryTemplate({
sourceQuery: options.sql,
res: options.resolution,
columns: options.columns
});
}
};
const vectorAggregationQueryTemplate = ctx => `${ctx.sourceQuery}`;