FIX QUERY

This commit is contained in:
I-Have-An-Issue 2022-10-15 23:28:54 -04:00
parent 41f1815c98
commit ed62edcc50
No known key found for this signature in database
GPG Key ID: E55435DEA0825091
2 changed files with 2 additions and 2 deletions

View File

@ -4,6 +4,6 @@ import joinscript from "$lib/joinscript.js";
export function GET({ url }) {
return new Response("", {
status: 302,
headers: { location: `https://assetdelivery.roblox.com/v1/asset?id=${url.query.get("id")}` }
headers: { location: `https://assetdelivery.roblox.com/v1/asset?id=${url.searchParams.get("id")}` }
});
}

View File

@ -4,6 +4,6 @@ import joinscript from "$lib/joinscript.js";
export function GET({ url }) {
return new Response("", {
status: 302,
headers: { location: `https://assetdelivery.roblox.com/v1/asset?id=${url.query.get("sid")}` }
headers: { location: `https://assetdelivery.roblox.com/v1/asset?id=${url.searchParams.get("sid")}` }
});
}