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)