Search function fixed

This commit is contained in:
killer069
2021-10-21 14:54:53 +05:30
parent e69f466f53
commit f410483980
3 changed files with 3 additions and 3 deletions

View File

@@ -156,7 +156,7 @@ export async function sp_search(
if (query.length === 0) throw new Error('Pass some query to search.');
if (limit > 50 || limit < 0) throw new Error(`You crossed limit range of Spotify [ 0 - 50 ]`);
const response = await request(
`https://api.spotify.com/v1/search?type=${type}&q=${query.replaceAll(' ', '+')}&limit=${limit}&market=${
`https://api.spotify.com/v1/search?type=${type}&q=${query}&limit=${limit}&market=${
spotifyData.market
}`,
{