Fixing the menu items to sort by date.

This commit is contained in:
Brian McGonagill 2022-09-07 11:30:38 -05:00
parent 2d9ab70fa6
commit 301c66eeba
2 changed files with 3 additions and 1 deletions

View file

@ -21,10 +21,12 @@ Meteor.methods({
throw new Meteor.Error('You are not allowed to add items. Make sure you are logged in with valid user credentials.');
}
serveDateActual = new Date(serveDate);
return MenuItems.insert({
itemName: itemName,
serveDate: serveDate,
serveDateActual: serveDateActual,
menuId: menuId,
addedBy: this.userId,
itemMade: false,