mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-25 17:01:28 +00:00
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:
parent
e7f040ecf7
commit
6c62d4c412
1 changed files with 3 additions and 0 deletions
|
@ -88,6 +88,9 @@ class SessionAutostartMiddleware {
|
||||||
noSessionCallback: (_req, _res, next) => {
|
noSessionCallback: (_req, _res, next) => {
|
||||||
next()
|
next()
|
||||||
},
|
},
|
||||||
|
// prevent exception for bot accesses to /project (which requires
|
||||||
|
// login and regenerates session)
|
||||||
|
regenerate: cb => cb(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue