fix: dateFormat normalization middleware

This commit is contained in:
Christel Westerberg
2024-11-28 15:44:17 +01:00
parent 528107e0ef
commit 6bc7e27908
3 changed files with 25 additions and 11 deletions

View File

@@ -43,6 +43,7 @@ export const middleware: NextMiddleware = async (request, event) => {
)
}
// Note that the order of middlewares is important since that is the order they are matched by.
const middlewares = [
currentWebLogin,
currentWebLoginEmail,
@@ -51,9 +52,9 @@ export const middleware: NextMiddleware = async (request, event) => {
handleAuth,
myPages,
webView,
dateFormat,
bookingFlow,
cmsContent,
dateFormat,
]
try {