server.js
// function which prompts the user for what action they should take
function which prompts the user for what action they should take
function which prompts the user for what action they should take
function start() {
  inquirer
    .prompt({
      name: "Choices",
      type: "list",
      message: "What would you like to search?",
      choices: ["View All Employees", "View All Departments", "Update Roles", "EXIT"]
    })
    .then(function(answer) {
      if (answer.Choices === "View All Employees") {
        viewEmployees();
      }
      else if(answer.Choices === "View All Departments") {
        viewDepartments();
      } 
      else if (answer.Choices === "Update Roles") {
        updateRoles();
      }
      else{
        connection.end();
      }
    });
}
function start ( ) { inquirer . prompt ( { name : "Choices" , type : "list" , message : "What would you like to search?" , choices : [ "View All Employees" , "View All Departments" , "Update Roles" , "EXIT" ] } ) . then ( function ( answer ) { if ( answer . Choices === "View All Employees" ) { viewEmployees ( ) ; } else if ( answer . Choices === "View All Departments" ) { viewDepartments ( ) ; } else if ( answer . Choices === "Update Roles" ) { updateRoles ( ) ; } else { connection . end ( ) ; } } ) ; }
function which prompts the user for what action they should take
function which prompts the user for what action they should take
// based on their answer, either call the bid or the post functions