fac21 / week5--Web-App--EMNS

https://database-web-app-week5.herokuapp.com/
0 stars 1 forks source link

age argument is missing #27

Open maryamgh1988 opened 3 years ago

maryamgh1988 commented 3 years ago
function post(request, response) {
    const data = request.body;
    const values = Object.values(data);
    db.query(
      "INSERT INTO users(username, location) VALUES($1, $2, $3)",
      values
    ).then(() => {
      response.redirect("/posts");
    });
  }

having input for age but not age argument for it in the function