Updating dashboard view, and fixing an issue with menu completion.

This commit is contained in:
Brian McGonagill 2022-08-30 16:17:53 -05:00
parent 81f29952e2
commit 2ce2499347
4 changed files with 48 additions and 17 deletions

View file

@ -45,6 +45,21 @@ Meteor.methods({
}
});
},
'setAllMade.menuItem' (menuId) {
check(menuId, String);
if (!this.userId) {
throw new Meteor.Error('You are not allowed to set all items as made. Make sure you are logged in with valid user credentials.');
}
return MenuItems.update({ menuId: menuId }, {
$set: {
itemMade: true,
}
}, {
multi: true
});
},
'setNotMade.menuItem' (itemId) {
check(itemId, String);