edge-case
This commit is contained in:
parent
6377de28d1
commit
1a8b81cb53
@ -81,6 +81,10 @@ export async function getVideosFromPlaylist(access_token, playlist_id) {
|
|||||||
maxResults: 10
|
maxResults: 10
|
||||||
}).then(res => res);
|
}).then(res => res);
|
||||||
|
|
||||||
|
if(videos.status > 299 || videos.status < 200) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
return videos.data.items;
|
return videos.data.items;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user