Declare constants with const keyword

This commit is contained in:
Daniel García Aubert 2017-09-13 18:40:09 +02:00
parent 6fd3388fa2
commit 33e8657e35

View File

@ -131,9 +131,9 @@ const aggregationQueryTpl = ctx => `
ORDER BY value DESC
`;
var CATEGORIES_LIMIT = 6;
const CATEGORIES_LIMIT = 6;
var VALID_OPERATIONS = {
const VALID_OPERATIONS = {
count: [],
sum: ['aggregationColumn'],
avg: ['aggregationColumn'],
@ -141,7 +141,7 @@ var VALID_OPERATIONS = {
max: ['aggregationColumn']
};
var TYPE = 'aggregation';
const TYPE = 'aggregation';
/**
{