Rename middleware

This commit is contained in:
Daniel García Aubert 2018-03-20 09:34:50 +01:00
parent 325bdfe92f
commit 9fd2519c12

View File

@ -88,7 +88,7 @@ MapController.prototype.composeCreateMapMiddleware = function (useTemplate = fal
incrementMapViewCount(this.metadataBackend),
augmentLayergroupData(),
getAffectedTables(this.pgConnection, this.layergroupAffectedTables),
setCacheChannel(),
setCacheChannelHeader(),
setSurrogateKeyHeader(this.surrogateKeysCache),
setLastModified(),
setLastUpdatedTimeToLayergroup(),
@ -381,8 +381,8 @@ function getAffectedTables (pgConnection, layergroupAffectedTables) {
};
}
function setCacheChannel () {
return function setCacheChannelMiddleware (req, res, next) {
function setCacheChannelHeader () {
return function setCacheChannelHeaderMiddleware (req, res, next) {
const { affectedTables } = res.locals;
if (req.method === 'GET') {