Skip to content

Commit

Permalink
let's see
Browse files Browse the repository at this point in the history
  • Loading branch information
anaskhan28 committed Feb 12, 2025
1 parent 33d9e7e commit 2b49b24
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/add-playlist-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
\"title\": \"$PLAYLIST_TITLE\",
\"category\": \"$PLAYLIST_CATEGORY\",
\"user_profile_link\": \"https://github.com/$CREATOR\",
\"user_image\": \"https://avatars.githubusercontent.com/$CREATOR\"
\"user_Image\": \"https://avatars.githubusercontent.com/$CREATOR\"
}
""" | tee temp_playlist.json
Expand Down
1 change: 0 additions & 1 deletion app/actions/addPlaylistData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ const addOrUpdatePlaylistData = async (): Promise<{ upserted: PlaylistType[], sk
user_profile_link: playlist.user_profile_link,
user_profile_image_link: playlist.user_Image
};
console.log(playlistData, 'playlsit-tobeadded')

if (!existingPlaylist || hasChanges(existingPlaylist, playlistData)) {
console.log(playlistData, 'playlsit-addded')
Expand Down
6 changes: 4 additions & 2 deletions app/playlist/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use client'
import React, { useCallback } from 'react'
import React, { useCallback, useEffect } from 'react'
import getUserData from '../actions/getUserData'
import { redirect } from 'next/navigation';
import addOrUpdatePlaylistData from '../actions/addPlaylistData';
Expand Down Expand Up @@ -58,7 +58,9 @@ const updatePlaylistData = useCallback(async () => {
await addOrUpdatePlaylistData();
}, []);

console.log(playlistData, 'data')


console.log(playlistJson, 'data')
if (playlistData && playlistData?.data?.length !== playlistJson.length) {
updatePlaylistData();
}
Expand Down
11 changes: 2 additions & 9 deletions playlist.json
Original file line number Diff line number Diff line change
Expand Up @@ -331,14 +331,7 @@
"category": "Full-Stack Development",
"user_profile_link": "https://github.com/anaskhan28",
"user_Image": "https://avatars.githubusercontent.com/anaskhan28"
},
{
"name": "Dark-Kernel",
"playlist_link": "https://youtube.com/playlist?list=PLBqEQje7T7jFVVDdj_NYWAeDebpUEEUo_&si=5Fki9sIu3rgHieO5",
"summary": "It teaches about renting server, hosting our stuffs on it. How to connect to server with ssh keys, setup domain for it, etc. \r",
"title": "Self Hosting Series by BugsWriter",
"category": "Other",
"user_profile_link": "https://github.com/Dark-Kernel",
"user_image": "https://avatars.githubusercontent.com/Dark-Kernel"
}


]

0 comments on commit 2b49b24

Please sign in to comment.