function productUpdate() {
  inquirer
    .prompt({
      name: "viewOptions",
      type: "list",
      message: "Would you like to update inventory?",
      choices: ["Add Inventory", "Delete Inventory", "Exit"]
    })
    .then(function (answer) {
      if (answer.viewOptions === "Add Inventory") {
        addInventory();
      } else if (answer.viewOptions === "Delete Inventory") {
        decreaseInventory();
      } else(answer.viewOptions === "Exit")
    });
}
// Allow users to update the inventory by increasing or decreasing quantities from the database.
Allow users to update the inventory by increasing or decreasing quantities from the database.
Allow users to update the inventory by increasing or decreasing quantities from the database .
function productUpdate() {
  inquirer
    .prompt({
      name: "viewOptions",
      type: "list",
      message: "Would you like to update inventory?",
      choices: ["Add Inventory", "Delete Inventory", "Exit"]
    })
    .then(function (answer) {
      if (answer.viewOptions === "Add Inventory") {
        addInventory();
      } else if (answer.viewOptions === "Delete Inventory") {
        decreaseInventory();
      } else(answer.viewOptions === "Exit")
    });
}
function productUpdate ( ) { inquirer . prompt ( { name : "viewOptions" , type : "list" , message : "Would you like to update inventory?" , choices : [ "Add Inventory" , "Delete Inventory" , "Exit" ] } ) . then ( function ( answer ) { if ( answer . viewOptions === "Add Inventory" ) { addInventory ( ) ; } else if ( answer . viewOptions === "Delete Inventory" ) { decreaseInventory ( ) ; } else ( answer . viewOptions === "Exit" ) } ) ; }
Allow users to update the inventory by increasing or decreasing quantities from the database.
Allow users to update the inventory by increasing or decreasing quantities from the database .