edge-case

This commit is contained in:
Omer Sabic 2024-06-08 20:43:13 +02:00
parent 6377de28d1
commit 1a8b81cb53

View File

@ -81,6 +81,10 @@ export async function getVideosFromPlaylist(access_token, playlist_id) {
maxResults: 10
}).then(res => res);
if(videos.status > 299 || videos.status < 200) {
return [];
}
return videos.data.items;
}