diff --git a/lib/cartodb/models/dataview/base.js b/lib/cartodb/models/dataview/base.js index ea7f9474..8c1ada5d 100644 --- a/lib/cartodb/models/dataview/base.js +++ b/lib/cartodb/models/dataview/base.js @@ -26,7 +26,7 @@ module.exports = class BaseDataview { return callback(err); } - psql.query(query, function(err, result) { + psql.query(query, (err, result) => { if (err) { return callback(err, result); } @@ -48,7 +48,7 @@ module.exports = class BaseDataview { const readOnlyTransaction = true; const columnTypeQuery = columnTypeQueryTpl({ column, query }); - psql.query(columnTypeQuery, function(err, result) { + psql.query(columnTypeQuery, (err, result) => { if (err) { return callback(err); }