Merge pull request #6100 from overleaf/bg-fix-bot-exception

[web] fix exception when trying to regenerate bot session

GitOrigin-RevId: 753b1dc5cc54263d198181d53bd8dfa02b7dae05
This commit is contained in:
Brian Gough 2021-12-14 09:27:49 +00:00 committed by Copybot
parent e7f040ecf7
commit 6c62d4c412

View file

@ -88,6 +88,9 @@ class SessionAutostartMiddleware {
noSessionCallback: (_req, _res, next) => {
next()
},
// prevent exception for bot accesses to /project (which requires
// login and regenerates session)
regenerate: cb => cb(),
}
}
}