Skip to content

Commit

Permalink
fix: getAllPlaylists2
Browse files Browse the repository at this point in the history
  • Loading branch information
adhimrahman committed May 8, 2024
1 parent c7d1c66 commit b991913
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions utils/songContains.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ async function getAllPlaylists2(userId) {
WHERE upc.user_id = ?
GROUP BY p.id, p.name, p.duration, upc.date_created;
`;
// const sql = `
// SELECT p.id, p.name, p.num_song, p.duration, upc.date_created
// FROM playlist p JOIN user_playlist_create upc ON p.id = upc.playlist_id
// WHERE upc.user_id = ?
// `;
connection.query(sql, [userId], (err, results) => {
if (err) {
reject(err);
Expand Down

0 comments on commit b991913

Please sign in to comment.