Do not override stats
This commit is contained in:
parent
81eb849aff
commit
f9b59d8549
@ -198,7 +198,6 @@ function createLayergroup (mapBackend, userLimitsBackend, pgConnection, affected
|
|||||||
|
|
||||||
mapBackend.createLayergroup(mapConfig, mapParams, mapConfigProvider, (err, layergroup, stats = {}) => {
|
mapBackend.createLayergroup(mapConfig, mapParams, mapConfigProvider, (err, layergroup, stats = {}) => {
|
||||||
req.profiler.add(stats);
|
req.profiler.add(stats);
|
||||||
req.profiler.done('createLayergroup');
|
|
||||||
|
|
||||||
if (err) {
|
if (err) {
|
||||||
return next(err);
|
return next(err);
|
||||||
|
@ -194,7 +194,6 @@ function instantiateLayergroup (mapBackend, userLimitsBackend, pgConnection, aff
|
|||||||
|
|
||||||
mapBackend.createLayergroup(mapConfig, rendererParams, mapConfigProvider, (err, layergroup, stats = {}) => {
|
mapBackend.createLayergroup(mapConfig, rendererParams, mapConfigProvider, (err, layergroup, stats = {}) => {
|
||||||
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