mirror of
https://gitlab.com/bmcgonag/get_my.git
synced 2026-03-27 00:08:49 +00:00
Updating dashboard view, and fixing an issue with menu completion.
This commit is contained in:
parent
81f29952e2
commit
2ce2499347
4 changed files with 48 additions and 17 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue