Avoid regression and update comment

This commit is contained in:
Daniel García Aubert
2017-10-31 16:58:00 +01:00
parent 5f7d5f6ec8
commit 39eb0f7bec
+4 -5
View File
@@ -332,16 +332,15 @@ MapController.prototype.afterLayergroupCreate = function (req, res, callback) {
}
};
// Don't wait for the mapview count increment to
// take place before proceeding. Error will be logged
// asynchronously
// Perform mapview count increment in parallel along the rest of after-layergroup-create
// tasks. Error won't blow up, just logged.
this.metadataBackend.incMapviewCount(user, mapconfig.obj().stat_tag, function(err) {
req.profiler.done('incMapviewCount');
if ( err ) {
global.logger.log("ERROR: failed to increment mapview count for user '" + user + "': " + err);
}
done(err);
done();
});
step(
@@ -383,7 +382,7 @@ MapController.prototype.augmentLayergroupData = function (req, res, callback) {
_.extend(layergroup, global.environment.serverMetadata);
callback();
}
};
MapController.prototype.getAffectedTables = function (req, res, callback) {
const self = this;