Removed unsused
parent
57eebc351e
commit
bc02499bda
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue