From fe17e90ef8aff50194949ebcc3ce66e739699a0d Mon Sep 17 00:00:00 2001 From: slawk0 Date: Fri, 31 Jan 2025 23:54:45 +0100 Subject: [PATCH] nodebil v3 --- server/db/db.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/db/db.js b/server/db/db.js index 61f12ca..5756f15 100644 --- a/server/db/db.js +++ b/server/db/db.js @@ -190,7 +190,7 @@ async function getUserId(username) { try { const result = await client.query(query, [username]); if (result.rows.length > 0) { - return result.rows[0].user_id; + return result.rows[0]; } else { console.log("No user found with username: ", username); return null;