Fix: callback expected errors in first argument
This commit is contained in:
@@ -177,7 +177,7 @@ function (layer, dbConnection, callback) {
|
||||
// to define the queries of the second phase
|
||||
queries.phase(() => firstPhaseQueries(queries, context));
|
||||
queries.phase(() => secondPhaseQueries(queries, context));
|
||||
queries.run(callback);
|
||||
queries.run(results => callback(null, results)).catch(error => callback(error));
|
||||
};
|
||||
|
||||
module.exports = MapnikLayerStats;
|
||||
|
||||
Reference in New Issue
Block a user