Rename middleware
This commit is contained in:
parent
325bdfe92f
commit
9fd2519c12
@ -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') {
|
||||
|
Loading…
Reference in New Issue
Block a user