minor: logging, update, cleaning

This commit is contained in:
2024-08-02 21:30:37 +05:30
parent aba341d7a1
commit 4035e4f070
4 changed files with 709 additions and 315 deletions

View File

@@ -71,6 +71,7 @@ const getUserPlaylists = async (req, res) => {
delete userPlaylists.next;
logger.debug("Fetched user's playlists", { num: userPlaylists.total });
return res.status(200).send(userPlaylists);
} catch (error) {
logger.error('getUserPlaylists', { error });
@@ -177,6 +178,7 @@ const getPlaylistDetails = async (req, res) => {
delete playlist.next;
logger.info("Fetched playlist tracks", { num: playlist.tracks.length });
return res.status(200).send(playlist);
} catch (error) {
logger.error('getPlaylistDetails', { error });