back to redis (gotta cache API calls)

This commit is contained in:
2025-03-05 00:16:01 -07:00
parent ba8982086b
commit 5a8611afbc
6 changed files with 224 additions and 1540 deletions

View File

@@ -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;