diff --git a/lib/cartodb/models/dataview/histogram.js b/lib/cartodb/models/dataview/histogram.js index 436a0368..4c01cc46 100644 --- a/lib/cartodb/models/dataview/histogram.js +++ b/lib/cartodb/models/dataview/histogram.js @@ -447,6 +447,7 @@ Histogram.prototype._buildDateHistogramQuery = function (psql, override, callbac } else { this.aggregation = aggregation; } + override.aggregation = this.aggregation; this._buildDateHistogramQuery(psql, override, callback); }.bind(this)); return null;