Updating framework to meteor 3 and later

This commit is contained in:
Brian McGonagill 2025-06-21 07:28:59 -05:00
parent 717994508a
commit cca29bc591
58 changed files with 2332 additions and 1611 deletions

View file

@ -27,14 +27,16 @@ Template.addMenuModal.events({
if (menuName == "" || menuName == null) {
Session.set("menuNameErr", true);
} else {
Meteor.call("add.menu", menuName, function(err, result) {
if (err) {
const addMenu = async() => {
let result = await Meteor.callAsync("add.menu", menuName);
if (!result) {
console.log(" ERROR adding menu: " + err);
} else {
console.log(" SUCCESS adding menu.");
$("#menuNameInp").val("");
}
});
}
addMenu();
}
},
});