Add new columns to userPlannedAdventures table and update Adventure interface
This commit is contained in:
@@ -25,14 +25,13 @@ export async function load({ params }) {
|
||||
id: item.id,
|
||||
name: item.name,
|
||||
location: item.location,
|
||||
created: item.created,
|
||||
date: item.date,
|
||||
} as Adventure;
|
||||
});
|
||||
|
||||
let name = rawData.name;
|
||||
let date = rawData.date;
|
||||
|
||||
|
||||
// Return the array of Adventure objects
|
||||
return {
|
||||
adventureArray,
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<div>
|
||||
<h1>{adventure.name}</h1>
|
||||
<p>{adventure.location}</p>
|
||||
<p>{adventure.created}</p>
|
||||
<p>{adventure.date}</p>
|
||||
<p>{adventure.id}</p>
|
||||
</div>
|
||||
{/each} -->
|
||||
@@ -25,7 +25,7 @@
|
||||
id={adventure.id}
|
||||
name={adventure.name}
|
||||
location={adventure.location}
|
||||
created={adventure.created}
|
||||
date={adventure.date}
|
||||
/>
|
||||
{/each}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user