Skip to content

Commit

Permalink
refactor: remove console.logs
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsumara committed Feb 12, 2023
1 parent aad9857 commit 993fe98
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ let songArrayAge = 0;
app.get('/top4', async (req, res) => {
if (Date.now() - songArrayAge > 86400000) {
let data = await spot.getTracks('https://open.spotify.com/playlist/37i9dQZF1EpwA0Eb3mMXw4');
console.log(data);
songArray = data.sort(() => Math.random() - 0.5).slice(0, 4).map(song => { return song.uri.slice(14) });
console.log(songArray);
songArrayAge = Date.now();
}
res.send(songArray);
Expand Down

0 comments on commit 993fe98

Please sign in to comment.