mirror of
https://gitlab.com/bmcgonag/get_my.git
synced 2026-03-27 00:08:49 +00:00
update to make menu items pull for first 9 days of month.
This commit is contained in:
parent
2ce2499347
commit
3b9a54daf1
3 changed files with 4 additions and 15 deletions
|
|
@ -47,15 +47,9 @@ Template.dashboard.helpers({
|
|||
},
|
||||
todayDate: function() {
|
||||
let now = new Date();
|
||||
let todayDate = moment(now).format("MMM D, YYYY");
|
||||
let todayDate = moment(now).format("MMM DD, 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 });
|
||||
}
|
||||
});
|
||||
|
||||
Template.dashboard.events({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue