From 8fe31c45f34b53ff1e22a1f20ebf6da66e31d5c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Mart=C3=ADn?= Date: Wed, 4 Oct 2017 11:10:17 +0200 Subject: [PATCH] fix 'this' scope with arrow function --- lib/cartodb/models/dataview/base.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }