Add image url to adventures and plans

This commit is contained in:
Sean Morley
2024-05-26 13:49:57 +00:00
parent 175c088776
commit 10bd897a55
5 changed files with 58 additions and 9 deletions

View File

@@ -28,8 +28,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.type, "mylog")
eq(adventureTable.userId, user.id)
// eq(adventureTable.type, "mylog")
)
)
.limit(1)