res.locals forgotten things and make jshint happy

This commit is contained in:
Simon Martín
2017-09-29 14:38:28 +02:00
parent 482feabce2
commit c22a35489d
4 changed files with 12 additions and 4 deletions
+7 -1
View File
@@ -177,7 +177,13 @@ LayergroupController.prototype.dataview = function(req, res, next) {
var mapConfigProvider = new MapStoreMapConfigProvider(
self.mapStore, req.context.user, self.userLimitsApi, res.locals
);
self.dataviewBackend.getDataview(mapConfigProvider, req.context.user, req.params.dataviewName, res.locals, this);
self.dataviewBackend.getDataview(
mapConfigProvider,
req.context.user,
req.params.dataviewName,
res.locals,
this
);
},
function finish(err, dataview, stats) {
req.profiler.add(stats || {});