mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-17 21:18:47 +03:00
Don't deconstruct
This commit is contained in:
@@ -31,7 +31,7 @@ export class YouTubeAPI {
|
|||||||
const { ytErr, data } = await new Promise((resolve) => _youTubeAPI.videos.list({
|
const { ytErr, data } = await new Promise((resolve) => _youTubeAPI.videos.list({
|
||||||
part,
|
part,
|
||||||
id: videoID,
|
id: videoID,
|
||||||
}, (ytErr: boolean | string, { data }: any) => resolve({ytErr, data})));
|
}, (ytErr: boolean | string, result: any) => resolve({ytErr, data: result?.data})));
|
||||||
|
|
||||||
if (!ytErr) {
|
if (!ytErr) {
|
||||||
// Only set cache if data returned
|
// Only set cache if data returned
|
||||||
|
|||||||
Reference in New Issue
Block a user