Refactor AdventureCard component and add new adventure page

This commit is contained in:
Sean Morley
2024-04-27 20:24:25 +00:00
parent ba84fbdcf3
commit 62109a41a6
5 changed files with 65 additions and 4 deletions

View File

@@ -27,7 +27,8 @@ export const GET: RequestHandler = async ({ url, locals }) => {
.where(
and(
eq(adventureTable.id, Number(id)), // Convert id to number
eq(adventureTable.userId, user.id)
eq(adventureTable.userId, user.id),
eq(adventureTable.type, "mylog")
)
)
.limit(1)