From edfb05ab4cb4788c38b08ce099f82bde276b76f3 Mon Sep 17 00:00:00 2001 From: Matthew Date: Sat, 3 Aug 2024 00:36:09 -0400 Subject: [PATCH] fix? --- src/pages/user/[username]/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/user/[username]/index.jsx b/src/pages/user/[username]/index.jsx index eb39381..2526796 100644 --- a/src/pages/user/[username]/index.jsx +++ b/src/pages/user/[username]/index.jsx @@ -32,7 +32,7 @@ export const getServerSideProps = withSession(async ({ req, query }) => { const fix = async (username) => { await client.connect() - const userId = await client.query('SELECT * FROM user WHERE username=$1', [username.toString()]) + const userId = await client.query('SELECT * FROM public.user WHERE username=$1', [username.toString()]) const res = await client.query('SELECT * FROM playlog WHERE user_id=$1', [userId.rows[0].id]) console.log(res.rows) // Hello world!