diff --git a/app/routes/users+/$username_+/notes.$noteId.tsx b/app/routes/users+/$username_+/notes.$noteId.tsx
index db9849e78..b9a35d8bd 100644
--- a/app/routes/users+/$username_+/notes.$noteId.tsx
+++ b/app/routes/users+/$username_+/notes.$noteId.tsx
@@ -32,6 +32,7 @@ export async function loader({ params }: Route.LoaderArgs) {
updatedAt: true,
images: {
select: {
+ id: true,
altText: true,
objectKey: true,
},
@@ -123,7 +124,7 @@ export default function NoteRoute({
{loaderData.note.images.map((image) => (
- -
+
-
+ prisma.noteImage.create({
data: {
noteId: note.id,
altText: noteImage.altText,
objectKey: noteImage.objectKey,
},
- })
- }
- }
+ }),
+ ),
+ )
}
}
console.timeEnd(`👤 Created ${totalUsers} users...`)
diff --git a/tests/e2e/passkey.test.ts b/tests/e2e/passkey.test.ts
index 3c1db6733..baa850a9f 100644
--- a/tests/e2e/passkey.test.ts
+++ b/tests/e2e/passkey.test.ts
@@ -24,7 +24,7 @@ test('Users can register and use passkeys', async ({
navigate,
login,
}) => {
- const user = await login()
+ await login()
const { client, authenticatorId } = await setupWebAuthn(page)