diff --git a/src/routes/adventure/[id]/+page.server.ts b/src/routes/adventure/[id]/+page.server.ts index f332b5b..2b14475 100644 --- a/src/routes/adventure/[id]/+page.server.ts +++ b/src/routes/adventure/[id]/+page.server.ts @@ -9,7 +9,7 @@ export const load = (async (event) => { return redirect(302, "/login"); } - let adventureUserId = await db + let adventureUserId: any[] = await db .select({ userId: adventureTable.userId }) .from(adventureTable) .where(eq(adventureTable.id, Number(event.params.id))) diff --git a/src/routes/adventure/[id]/+page.svelte b/src/routes/adventure/[id]/+page.svelte index 9576bc3..7bb1cbe 100644 --- a/src/routes/adventure/[id]/+page.svelte +++ b/src/routes/adventure/[id]/+page.svelte @@ -66,9 +66,15 @@ {/if} {#if adventure.activityTypes && adventure.activityTypes.length > 0}
-

Activities:

+

Activities: 

{/if} diff --git a/src/routes/api/adventure/+server.ts b/src/routes/api/adventure/+server.ts index 57ca82e..7bfba3e 100644 --- a/src/routes/api/adventure/+server.ts +++ b/src/routes/api/adventure/+server.ts @@ -39,7 +39,7 @@ export const GET: RequestHandler = async ({ url, locals }) => { return json({ error: "Adventure not found" }, { status: 404 }); } - let adventureData = JSON.stringify( + JSON.stringify( adventure.map((r) => { const adventure: Adventure = r as Adventure; if (typeof adventure.activityTypes === "string") {