Rename misleading function argument

This commit is contained in:
Javier Goizueta
2018-05-16 14:45:19 +02:00
parent b8109401d1
commit 3af1182206
@@ -35,10 +35,10 @@ MapnikLayerStats.prototype.is = function (type) {
return this._types[type] ? this._types[type] : false;
};
function queryPromise(dbConnection, query, callback) {
function queryPromise(dbConnection, query, setResults) {
return new Promise(function(resolve, reject) {
dbConnection.query(query, function (err, res) {
err = callback(err, res);
err = setResults(err, res);
if (err) {
reject(err);
}