From b5ffc8928caf5a3baf5c07483fa237d327d914c1 Mon Sep 17 00:00:00 2001 From: Regalijan Date: Wed, 15 May 2024 16:07:01 -0400 Subject: [PATCH] Fix me page not loading anything --- app/routes/me.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routes/me.tsx b/app/routes/me.tsx index dc39af5..9160036 100644 --- a/app/routes/me.tsx +++ b/app/routes/me.tsx @@ -37,7 +37,7 @@ export async function loader({ context }: { context: RequestContext }) { context.env.D1.prepare( `SELECT * FROM ${itemType} - WHERE user = ? + WHERE json_extract(user, '$.id') = ? ORDER BY created_at DESC;`, ) .bind(currentUser.id)