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

@ -49,6 +49,12 @@ Template.dashboard.helpers({
let now = new Date();
let todayDate = moment(now).format("MMM D, YYYY");
return todayDate;
},
nextDays: function() {
let now = new Date();
let nowDate = moment(now).add(1, 'day').format("MM D, YYYY");
console.log("nowDate = " + nowDate);
return MenuItems.find({ serveDate: nowDate });
}
});