Use object shorthand notation
This commit is contained in:
parent
11f7b38c69
commit
b4ce13e429
@ -45,10 +45,7 @@ var columnTypeQueryTpl = ctx => `SELECT pg_typeof(${ctx.column})::oid FROM (${ct
|
|||||||
BaseDataview.prototype.getColumnType = function (psql, column, query, callback) {
|
BaseDataview.prototype.getColumnType = function (psql, column, query, callback) {
|
||||||
var readOnlyTransaction = true;
|
var readOnlyTransaction = true;
|
||||||
|
|
||||||
var columnTypeQuery = columnTypeQueryTpl({
|
var columnTypeQuery = columnTypeQueryTpl({ column, query });
|
||||||
column: column,
|
|
||||||
query: query
|
|
||||||
});
|
|
||||||
|
|
||||||
psql.query(columnTypeQuery, function(err, result) {
|
psql.query(columnTypeQuery, function(err, result) {
|
||||||
if (err) {
|
if (err) {
|
||||||
|
Loading…
Reference in New Issue
Block a user