Skip to content

Commit

Permalink
fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
matthe815 committed Aug 3, 2024
1 parent af84549 commit edfb05a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/user/[username]/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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!

Expand Down

0 comments on commit edfb05a

Please sign in to comment.