diff --git a/lib/common.js b/lib/common.js index 71c6e76..fb96ecc 100755 --- a/lib/common.js +++ b/lib/common.js @@ -357,7 +357,7 @@ const getMenu = (db) => { }; // creates a new menu item -const newMenu = (req, res) => { +const newMenu = (req) => { const db = req.app.db; return getMenu(db) .then((menu) => { @@ -385,7 +385,7 @@ const newMenu = (req, res) => { }; // delete a menu item -const deleteMenu = (req, res, menuIndex) => { +const deleteMenu = (req, menuIndex) => { const db = req.app.db; return getMenu(db) .then((menu) => { @@ -402,7 +402,7 @@ const deleteMenu = (req, res, menuIndex) => { }; // updates and existing menu item -const updateMenu = (req, res) => { +const updateMenu = (req) => { const db = req.app.db; return getMenu(db) .then((menu) => {