Skip to content

Commit 462b4f6

Browse files
author
Nicos
committed
login and singup queries created
Relates #2 #10
1 parent e48c6ca commit 462b4f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Queries/register_user.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const dbConnection = require("../database/db_connection.js");
22

33
const register_user = (user, cb) => {
44
dbConnection.query(
5-
`INSERT INTO users(name, password) VALUES ($1, $2)`,
5+
`INSERT INTO users(username, password) VALUES ($1, $2)`,
66
[
77
user.username,
88
user.password,

0 commit comments

Comments
 (0)