update to make menu items pull for first 9 days of month.

This commit is contained in:
Brian McGonagill 2022-09-01 09:54:23 -05:00
parent 2ce2499347
commit 3b9a54daf1
3 changed files with 4 additions and 15 deletions

View file

@ -90,8 +90,8 @@ Meteor.publish("myMenuItems", function(menuId) {
Meteor.publish("todayMenuItems", function() {
try {
let todayDate = new Date();
let todaysDate = moment(todayDate).format("MMM D, YYYY");
return MenuItems.find({ serveDate: todaysDate });
let todaysDate = moment(todayDate).format("MMM DD, YYYY");
return MenuItems.find({ serveDate: todaysDate, itemMade: false });
} catch (error) {
console.log(" ERROR pulling today's menu items: " + error);
}