fix because I am a fuckin retard

This commit is contained in:
2026-02-14 00:06:39 +00:00
parent ebaed9337f
commit d30673e24d

View File

@ -10,7 +10,7 @@ const getRandomResultFromGCI = async (
const searchParams = new URLSearchParams();
searchParams.append("query", query);
const response = await fetch(
`https://guncadindex.com/api/releases/?query=${searchParams}`,
`https://guncadindex.com/api/releases/?${searchParams}`,
);
if (!response.ok) {
console.error(response.status);
@ -21,7 +21,7 @@ const getRandomResultFromGCI = async (
if (!results || results.length === 0) {
return {
error: false,
payload: `https://guncadindex.com/search?query=${searchParams}`,
payload: `https://guncadindex.com/search?${searchParams}`,
};
}
// select a random result from the API