From 3441ad6aa96568b6c14ecfb8d1407275f98c2bd5 Mon Sep 17 00:00:00 2001 From: Simon Date: Fri, 8 Sep 2017 12:04:25 +0200 Subject: [PATCH] rename _buildDateHistogramQueryTpl by _buildQueryTpl --- lib/cartodb/models/dataview/date-histogram.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cartodb/models/dataview/date-histogram.js b/lib/cartodb/models/dataview/date-histogram.js index efd3f4be..7dd25683 100644 --- a/lib/cartodb/models/dataview/date-histogram.js +++ b/lib/cartodb/models/dataview/date-histogram.js @@ -218,7 +218,7 @@ module.exports = class DateHistogram extends BaseDataview { return this._columnType === 'date' && (this.aggregation !== undefined || override.aggregation !== undefined); } - _buildDateHistogramQueryTpl (ctx) { + _buildQueryTpl (ctx) { return ` WITH ${ctx._override && ctx._override.hasOwnProperty('start') && ctx._override.hasOwnProperty('end') ? @@ -253,7 +253,7 @@ module.exports = class DateHistogram extends BaseDataview { return null; } - const histogramSql = this._buildDateHistogramQueryTpl({ + const histogramSql = this._buildQueryTpl({ _override: override, _query: this.query, _column: this.column,