From 38f0e23efe05d1834e2c35eb2d28e981f9b388d2 Mon Sep 17 00:00:00 2001 From: Simon Date: Fri, 8 Sep 2017 12:10:31 +0200 Subject: [PATCH] rename buildNumericHistogramQueryTpl by buildQueryTpl --- lib/cartodb/models/dataview/numeric-histogram.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cartodb/models/dataview/numeric-histogram.js b/lib/cartodb/models/dataview/numeric-histogram.js index cb4d8a58..55368f6d 100644 --- a/lib/cartodb/models/dataview/numeric-histogram.js +++ b/lib/cartodb/models/dataview/numeric-histogram.js @@ -207,7 +207,7 @@ module.exports = class NumericHistogram extends BaseDataview { _buildQuery (psql, override, callback) { - const histogramSql = this.buildNumericHistogramQueryTpl({ + const histogramSql = this.buildQueryTpl({ _override: override, _column: this._columnType === 'date' ? columnCastTpl({ column: this.column }) : this.column, _isFloatColumn: this._columnType === 'float', @@ -223,7 +223,7 @@ module.exports = class NumericHistogram extends BaseDataview { return callback(null, histogramSql); } - buildNumericHistogramQueryTpl (ctx) { + buildQueryTpl (ctx) { return ` WITH ${filteredQueryTpl(ctx)},