From 0a0c2c94dd2f0ab03001bac7627028bf62d22b89 Mon Sep 17 00:00:00 2001 From: Kasper Socha Date: Tue, 28 Jan 2025 16:01:52 +0100 Subject: [PATCH] fix uncaught exception --- app/root.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/root.tsx b/app/root.tsx index 4f9c14a3..6defeb18 100644 --- a/app/root.tsx +++ b/app/root.tsx @@ -78,7 +78,7 @@ export async function loader({ request }: Route.LoaderArgs) { const user = userId ? await time( () => - prisma.user.findUniqueOrThrow({ + prisma.user.findUnique({ select: { id: true, name: true,