Use template string for columnCastTpl

This commit is contained in:
Daniel García Aubert 2017-09-06 11:44:25 +02:00
parent 4f75f6c07b
commit 8e2535745e

View File

@ -5,7 +5,7 @@ var debug = require('debug')('windshaft:dataview:histogram');
var dot = require('dot');
dot.templateSettings.strip = false;
var columnCastTpl = dot.template("date_part('epoch', {{=it.column}})");
var columnCastTpl = ctx => `date_part('epoch', ${ctx.column})`
const dateIntervalQueryTpl = ctx => `
WITH