Refactor adventure page layout to display activity types in +page.svelte and update server files

This commit is contained in:
Sean Morley
2024-04-30 23:04:12 +00:00
parent 9f9f0c3d87
commit 6d4e860e43
3 changed files with 10 additions and 4 deletions

View File

@@ -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") {