mirror of
https://github.com/20kaushik02/spotify-manager.git
synced 2026-01-25 14:14:06 +00:00
tidying up redis' remains while shifting to sqlite, DRYer 500 responses
This commit is contained in:
@@ -73,7 +73,7 @@ const getUserPlaylists = async (req, res) => {
|
||||
return res.status(200).send(playlists);
|
||||
} catch (error) {
|
||||
logger.error('getUserPlaylists', { error });
|
||||
return res.status(500).send({ message: "Server Error. Try again." });
|
||||
return res.sendStatus(500);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -155,7 +155,7 @@ const getPlaylistDetails = async (req, res) => {
|
||||
return res.status(200).send(playlist);
|
||||
} catch (error) {
|
||||
logger.error('getPlaylistDetails', { error });
|
||||
return res.status(500).send({ message: "Server Error. Try again." });
|
||||
return res.sendStatus(500);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user