lib/department.js
// function to display a table to the users of exisiting departments
function to display a table to the users of exisiting departments
function to display a table to the users of exisiting departments
async function viewDepartments() {
  let values = [];
  try {
    const results = await getDeptList();
    results.forEach(res => { 
      values.push([res.department]); 
    });
  } catch (err) {
    console.log("error with viewUtiliedBudget",err);
  }
  console.log(" ");
  console.table(['Department'],values);
  genDept();
}
async function viewDepartments ( ) { let values = [ ] ; try { const results = await getDeptList ( ) ; results . forEach ( res => { values . push ( [ res . department ] ) ; } ) ; } catch ( err ) { console . log ( "error with viewUtiliedBudget" , err ) ; } console . log ( " " ) ; console . table ( [ 'Department' ] , values ) ; genDept ( ) ; }
function to display a table to the users of exisiting departments
function to display a table to the users of exisiting departments
// const db = makeDb();