Added autocomplete to Menu Item entryies

This commit is contained in:
Brian McGonagill 2024-07-29 07:46:30 -05:00
parent 9abb198e82
commit d8c08578f3
4 changed files with 42 additions and 7 deletions

View file

@ -83,10 +83,18 @@ Meteor.publish("myMenuItems", function(menuId) {
try {
return MenuItems.find({ menuId: menuId });
} catch (error) {
console.log(" ERROR pulling list items for this list: " + error);
console.log(" ERROR pulling menu items for this list: " + error);
}
});
Meteor.publish("allMenuItems", function() {
try {
return MenuItems.find({});
} catch (error) {
console.log(" ERROR pulling all menu items from collection: " + error);
}
})
Meteor.publish("todayMenuItems", function() {
try {
let todayDate = new Date();