mirror of
https://github.com/20kaushik02/spotify-manager.git
synced 2026-01-25 14:14:06 +00:00
minor: logging, update, cleaning
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user