Use the right variable for determining fetch URL

This commit is contained in:
Maciej Pędzich 2023-01-27 15:48:17 +01:00
parent bd54932a5e
commit 449f718e6f

2
bot.ts
View File

@ -75,7 +75,7 @@ export const bot: ApplicationFunction = (app) => {
).replace('https:/', 'https://');
const url = getPlaylistIdFromUrl(filenameWithoutRegistryPath)
? filename
? filenameWithoutRegistryPath
: `https://open.spotify.com/playlist/${filenameWithoutRegistryPath}`;
const spotifyResponse = await fetch(url);