mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 19:33:02 +03:00
3a78cf48c9
ref https://ghost.slack.com/archives/C02G9E68C/p1700129928489809 - When the GET /api/session endpoint is called, the session is deleted if it is invalid - We don't have a body parser for this GET endoint, and the request object was passed to the deleteSession handler. This caused a type error (cannot read properties of undefined) - We had dangling promise because deleteSession is async and wasn't awaited, causing random errors in tests - Added a test that would have caught this earlier |
||
---|---|---|
.. | ||
helpers | ||
advanced_url_config.test.js | ||
custom_routes.test.js | ||
default_routes.test.js | ||
email_routes.test.js | ||
member_stats.test.js | ||
members.test.js | ||
preview_routes.test.js |