mirror of
https://github.com/20kaushik02/spotify-manager.git
synced 2026-01-25 14:14:06 +00:00
package checks, healthcheck, lot of cookie fiddling, some logging, bug fixing
This commit is contained in:
@@ -19,7 +19,7 @@ const isAuthenticated = (req, res, next) => {
|
||||
const delSession = req.session.destroy((err) => {
|
||||
if (err) {
|
||||
res.sendStatus(500);
|
||||
logger.error("Error while destroying session.", { err });
|
||||
logger.error("session.destroy", { err });
|
||||
return;
|
||||
} else {
|
||||
res.clearCookie(sessionName);
|
||||
|
||||
Reference in New Issue
Block a user