mirror of
https://github.com/20kaushik02/spotify-manager.git
synced 2026-01-25 06:04:05 +00:00
back to redis (gotta cache API calls)
This commit is contained in:
@@ -142,7 +142,7 @@ const refresh = async (req, res) => {
|
||||
const logout = async (req, res) => {
|
||||
try {
|
||||
const delSession = req.session.destroy((error) => {
|
||||
if (error) {
|
||||
if(Object.keys(error).length) {
|
||||
res.status(500).send({ message: "Internal Server Error" });
|
||||
logger.error("Error while logging out", { error });
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user