Added List and Menu clean up.

This commit is contained in:
Brian McGonagill 2024-07-30 16:32:06 -05:00
parent 2f3f82477a
commit e60c32894c
7 changed files with 211 additions and 9 deletions

View file

@ -122,6 +122,38 @@ Meteor.publish("allTasks", function() {
}
});
Meteor.publish("allProducts", function() {
try {
return Products.find({});
} catch (error) {
console.log(" ERROR pulling the task items: " + error);
}
});
Meteor.publish("allMenus", function() {
try {
return Menus.find({});
} catch (error) {
console.log(" ERROR pulling the task items: " + error);
}
});
Meteor.publish("allStores", function() {
try {
return Stores.find({});
} catch (error) {
console.log(" ERROR pulling the task items: " + error);
}
});
Meteor.publish("allLists", function() {
try {
return Lists.find({});
} catch (error) {
console.log(" ERROR pulling the task items: " + error);
}
});
Meteor.publish("myTasks", function() {
try {
return TaskItems.find({ assignedToId: this.userId });