tidying up redis' remains while shifting to sqlite, DRYer 500 responses

This commit is contained in:
2024-07-24 20:09:54 +05:30
parent 5803c997b2
commit 40cf0c2e2b
8 changed files with 1285 additions and 114 deletions

View File

@@ -11,7 +11,7 @@ const __controller_func = async (req, res) => {
} catch (error) {
logger.error('__controller_func', { error });
return res.status(500).send({ message: "Server Error. Try again." });
return res.sendStatus(500);
}
}