mirror of
https://github.com/maciejpedzich/playlist-entry-validator.git
synced 2024-11-28 00:15:48 +01:00
Use the right variable for determining fetch URL
This commit is contained in:
parent
bd54932a5e
commit
449f718e6f
2
bot.ts
2
bot.ts
@ -75,7 +75,7 @@ export const bot: ApplicationFunction = (app) => {
|
|||||||
).replace('https:/', 'https://');
|
).replace('https:/', 'https://');
|
||||||
|
|
||||||
const url = getPlaylistIdFromUrl(filenameWithoutRegistryPath)
|
const url = getPlaylistIdFromUrl(filenameWithoutRegistryPath)
|
||||||
? filename
|
? filenameWithoutRegistryPath
|
||||||
: `https://open.spotify.com/playlist/${filenameWithoutRegistryPath}`;
|
: `https://open.spotify.com/playlist/${filenameWithoutRegistryPath}`;
|
||||||
|
|
||||||
const spotifyResponse = await fetch(url);
|
const spotifyResponse = await fetch(url);
|
||||||
|
Loading…
Reference in New Issue
Block a user