mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-17 13:08:49 +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({
|
||||
part,
|
||||
id: videoID,
|
||||
}, (ytErr: boolean | string, { data }: any) => resolve({ytErr, data})));
|
||||
}, (ytErr: boolean | string, result: any) => resolve({ytErr, data: result?.data})));
|
||||
|
||||
if (!ytErr) {
|
||||
// Only set cache if data returned
|
||||
|
||||
Reference in New Issue
Block a user