nodebil v3

This commit is contained in:
slawk0
2025-01-31 23:54:45 +01:00
parent a424402e7e
commit fe17e90ef8

View File

@@ -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;