Skip to content

Commit

Permalink
Update mariadb.js
Browse files Browse the repository at this point in the history
  • Loading branch information
masfahru authored Jun 10, 2024
1 parent d487f86 commit ad9ae79
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mariadb.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ export const createOrResetTable = async () => {

export const insertUser = async (user) =>
pool.execute(
`insert into users (first_name, last_name, email, password, age,
gender, created_at, updated_at)
values (?, ?, ?, ?, ?, ?, ?, ?)`,
`insert into users (first_name, last_name, email, password, age, gender, created_at, updated_at)
values (?, ?, ?, ?, ?, ?, ?, ?)`,
[user.first_name, user.last_name, user.email, user.password, user.age, user.gender, user.created_at, user.updated_at],
);

Expand Down

0 comments on commit ad9ae79

Please sign in to comment.