mirror of
https://github.com/kaythomas0/noisedash.git
synced 2025-11-15 04:38:00 +00:00
Fix some server logic
This commit is contained in:
@@ -30,7 +30,7 @@ app.use(session({
|
||||
resave: true,
|
||||
saveUninitialized: true
|
||||
}))
|
||||
app.use(function (req, res, next) {
|
||||
app.use((req, res, next) => {
|
||||
const msgs = req.session.messages || []
|
||||
res.locals.messages = msgs
|
||||
res.locals.hasMessages = !!msgs.length
|
||||
|
||||
Reference in New Issue
Block a user