try version 2 (i am so tired)

This commit is contained in:
Xyphyn committed 2023-07-04 14:30:41 -07:00
1 parent 87817aaa34
commit ef037349f0
1 file changed
+3 -8
+3 -8
View File
@@ -45,14 +45,9 @@ export async function handle({ event, resolve }) {
const json = await data.json()
await resolve(event)
return new Response(
JSON.stringify({
message: 'Failed to fetch',
}),
{
status: data.status,
}
)
return new Response(JSON.stringify(json), {
status: data.status,
})
} catch (err) {
await resolve(event)
return new Response(