Rename misleading function argument
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user