Add stats first
This commit is contained in:
parent
9f9b933607
commit
81eb849aff
@ -197,8 +197,8 @@ function createLayergroup (mapBackend, userLimitsBackend, pgConnection, affected
|
|||||||
const mapParams = { dbuser, dbname, dbpassword, dbhost, dbport };
|
const mapParams = { dbuser, dbname, dbpassword, dbhost, dbport };
|
||||||
|
|
||||||
mapBackend.createLayergroup(mapConfig, mapParams, mapConfigProvider, (err, layergroup, stats = {}) => {
|
mapBackend.createLayergroup(mapConfig, mapParams, mapConfigProvider, (err, layergroup, stats = {}) => {
|
||||||
req.profiler.done('createLayergroup');
|
|
||||||
req.profiler.add(stats);
|
req.profiler.add(stats);
|
||||||
|
req.profiler.done('createLayergroup');
|
||||||
|
|
||||||
if (err) {
|
if (err) {
|
||||||
return next(err);
|
return next(err);
|
||||||
|
@ -193,8 +193,8 @@ function instantiateLayergroup (mapBackend, userLimitsBackend, pgConnection, aff
|
|||||||
);
|
);
|
||||||
|
|
||||||
mapBackend.createLayergroup(mapConfig, rendererParams, mapConfigProvider, (err, layergroup, stats = {}) => {
|
mapBackend.createLayergroup(mapConfig, rendererParams, mapConfigProvider, (err, layergroup, stats = {}) => {
|
||||||
req.profiler.done('createLayergroup');
|
|
||||||
req.profiler.add(stats);
|
req.profiler.add(stats);
|
||||||
|
req.profiler.done('createLayergroup');
|
||||||
|
|
||||||
if (err) {
|
if (err) {
|
||||||
return next(err);
|
return next(err);
|
||||||
|
Loading…
Reference in New Issue
Block a user