From d25ef56591fd80e203af784f7654a238bd9f7bb5 Mon Sep 17 00:00:00 2001 From: Brian McGonagill Date: Wed, 23 Jul 2025 19:44:24 -0500 Subject: [PATCH] Commenting out console logging. --- client/Accounts/Login/login.js | 2 +- client/Accounts/Login/reg.js | 2 +- client/AdminMgmt/ProductMgmt/prodMgmtForm.js | 4 ++-- client/AdminMgmt/ProductMgmt/prodMgmtTbl.js | 2 +- client/AdminMgmt/StoreMgmt/storeMgmtForm.js | 4 ++-- client/AdminMgmt/SystemAdmin/systemAdmin.js | 4 ++-- client/AdminMgmt/Tasks/taskForm.js | 6 +++--- client/AdminMgmt/Tasks/taskTbl.js | 2 +- client/Dashboard/dashboard.js | 10 +++++----- .../DeleteConfModal/deleteConfirmationModal.js | 4 ++-- client/General/headerBar.js | 6 +++--- client/ListItems/listItemTblByStore.js | 6 +++--- client/ListItems/listItemsForm.js | 6 +++--- client/ListItems/listItemsTbl.js | 6 +++--- client/Lists/listsTbl.js | 6 +++--- client/MainLayout.js | 6 +++--- client/MenuItems/addProdToListModal.js | 10 +++++----- client/MenuItems/menuItemsForm.js | 10 +++++----- client/MenuItems/menuItemsTbl.js | 4 ++-- client/MenuItems/modalLinkProducts.js | 6 +++--- client/Menus/addMenuModal.js | 4 ++-- client/Menus/mainMenuTbl.js | 14 +++++++------- client/MyTasks/myTasksForm.js | 4 ++-- client/MyTasks/myTasksTbl.js | 4 ++-- client/UserConfig/userConfig.js | 2 +- imports/api/listItems.js | 8 ++++---- imports/api/menu.js | 2 +- imports/api/menuProdLinks.js | 6 +++--- imports/api/systemConfig.js | 4 ++-- imports/api/tasks.js | 12 ++++++------ imports/api/userLast.js | 8 ++++---- 31 files changed, 87 insertions(+), 87 deletions(-) diff --git a/client/Accounts/Login/login.js b/client/Accounts/Login/login.js index d251060..f436e4b 100644 --- a/client/Accounts/Login/login.js +++ b/client/Accounts/Login/login.js @@ -26,7 +26,7 @@ Template.login.helpers({ Template.login.events({ 'click #logmein' (event) { event.preventDefault(); - console.log("clicked login"); + // console.log("clicked login"); let email = $("#email").val(); let pass = $("#password").val(); diff --git a/client/Accounts/Login/reg.js b/client/Accounts/Login/reg.js index 6a028cc..2a46225 100644 --- a/client/Accounts/Login/reg.js +++ b/client/Accounts/Login/reg.js @@ -88,7 +88,7 @@ Template.reg.events({ }); let userId = Meteor.userId(); - console.log("User ID: " + userId); + // console.log("User ID: " + userId); const addRole = async() => { let result = await Meteor.callAsync("addToRole", "user"); if (!result) { diff --git a/client/AdminMgmt/ProductMgmt/prodMgmtForm.js b/client/AdminMgmt/ProductMgmt/prodMgmtForm.js index 1022602..cb5fc18 100644 --- a/client/AdminMgmt/ProductMgmt/prodMgmtForm.js +++ b/client/AdminMgmt/ProductMgmt/prodMgmtForm.js @@ -53,7 +53,7 @@ Template.prodMgmtForm.events({ }, 'click #showNoStoreSet' (event) { let noStoreSet = $("#showNoStoreSet").prop('checked'); - console.log("Clicked: " + noStoreSet); + // console.log("Clicked: " + noStoreSet); if (noStoreSet == true) { Session.set("noStoreSet", true); } else { @@ -69,7 +69,7 @@ const newProd = async(name, store) => { let result = await Meteor.callAsync('add.product', name, store); try { if (!result) { - console.log("No result when trying to add a new product."); + // console.log("No result when trying to add a new product."); showSnackbar("Unable to add new product."); } else { $("#prodName").val(""); diff --git a/client/AdminMgmt/ProductMgmt/prodMgmtTbl.js b/client/AdminMgmt/ProductMgmt/prodMgmtTbl.js index ccebb15..cf49c52 100644 --- a/client/AdminMgmt/ProductMgmt/prodMgmtTbl.js +++ b/client/AdminMgmt/ProductMgmt/prodMgmtTbl.js @@ -60,7 +60,7 @@ Template.prodMgmtTbl.events({ const getProds = async() => { let prodInfo = await Products.findOneAsync({ _id: this._id }); if (!prodInfo) { - console.log("No Product Returned."); + // console.log("No Product Returned."); } else { $("#prodName").val(prodInfo.prodName); $("#prodStore").val(prodInfo.prodStore); diff --git a/client/AdminMgmt/StoreMgmt/storeMgmtForm.js b/client/AdminMgmt/StoreMgmt/storeMgmtForm.js index 559a010..07da897 100644 --- a/client/AdminMgmt/StoreMgmt/storeMgmtForm.js +++ b/client/AdminMgmt/StoreMgmt/storeMgmtForm.js @@ -62,7 +62,7 @@ Template.storeMgmtForm.events({ const addStore = async(storeName) => { let result = await Meteor.callAsync("add.store", storeName); if (!result) { - console.log("ERROR: Store add failed."); + // console.log("ERROR: Store add failed."); } else { $("#storeName").val(""); showSnackbar("Store Added Successfully!", "green"); @@ -72,7 +72,7 @@ const addStore = async(storeName) => { const editStore = async(storeId, storeName) => { let result = await Meteor.callAsync("edit.store", storeId, storeName); if (!result) { - console.log("ERROR: Store add failed: " + err); + // console.log("ERROR: Store add failed: " + err); } else { $("#storeName").val(""); Session.set("editModeStore", false); diff --git a/client/AdminMgmt/SystemAdmin/systemAdmin.js b/client/AdminMgmt/SystemAdmin/systemAdmin.js index 035a143..2e52c4e 100644 --- a/client/AdminMgmt/SystemAdmin/systemAdmin.js +++ b/client/AdminMgmt/SystemAdmin/systemAdmin.js @@ -14,7 +14,7 @@ Template.systemAdmin.onRendered(function() { $("#allAdmReg").prop('checked', curr.SysAdminReg); $("#recvUpdateMsgs").prop('checked', curr.allowUpdates); } else { - console.log(" ---- unable to find current system configuration."); + // console.log(" ---- unable to find current system configuration."); } }); @@ -49,7 +49,7 @@ Template.systemAdmin.events({ const allowUpdateInfo = async() => { let result = await Meteor.callAsync('allow.updateInfo', updSet); if (!result) { - console.log(" ERROR changing update setting."); + // console.log(" ERROR changing update setting."); showSnackbar("Update Setting Change Failed.", "red"); } else { showSnackbar("Update Setting Changed Successfully!", "green"); diff --git a/client/AdminMgmt/Tasks/taskForm.js b/client/AdminMgmt/Tasks/taskForm.js index 2ff956e..2c5f42a 100644 --- a/client/AdminMgmt/Tasks/taskForm.js +++ b/client/AdminMgmt/Tasks/taskForm.js @@ -50,7 +50,7 @@ Template.taskForm.events({ event.preventDefault(); let elemcc = document.getElementById('taskName'); let taskName = M.Chips.getInstance(elemcc).chipsData; - console.log(taskName); + // console.log(taskName); }, 'change #taskDate' (event) { let taskDate = $("#taskDate").val(); @@ -94,9 +94,9 @@ Template.taskForm.events({ const addTask = async() => { let result = await Meteor.callAsync("add.task", taskNameArr, userInfo[0], userInfo[1], taskDateArr, actDate); if (!result) { - console.log(" ERROR adding the new task."); + // console.log(" ERROR adding the new task."); } else { - console.log(" SUCCESS adding the new task."); + // console.log(" SUCCESS adding the new task."); Session.set("taskDateArr", []); $("#taskDate").val(""); $("#taskUser").val(""); diff --git a/client/AdminMgmt/Tasks/taskTbl.js b/client/AdminMgmt/Tasks/taskTbl.js index def48f4..dfb41eb 100644 --- a/client/AdminMgmt/Tasks/taskTbl.js +++ b/client/AdminMgmt/Tasks/taskTbl.js @@ -46,7 +46,7 @@ Template.taskTbl.events({ const markComp = async() => { let result = await Meteor.callAsync("markTask.complete", taskId); if (!result) { - console.log(" ERROR marking task completeL " + err); + // console.log(" ERROR marking task completeL " + err); showSnackbar("ERROR Marking Task Complete!", "red"); } else { showSnackbar("Successfully Marked Task Complete!", "green"); diff --git a/client/Dashboard/dashboard.js b/client/Dashboard/dashboard.js index 4eb2c8c..6489fc0 100644 --- a/client/Dashboard/dashboard.js +++ b/client/Dashboard/dashboard.js @@ -68,10 +68,10 @@ Template.dashboard.helpers({ let updateAvail = UpdateInfo.find({}); try { if (!updateAvail) { - console.log("No update info found."); + // console.log("No update info found."); return false; } else { - console.dir(updateAvail); + // console.dir(updateAvail); return updateAvail; } } catch(error) { @@ -82,10 +82,10 @@ Template.dashboard.helpers({ const ifUpdate = async() => { let updateExists = await UpdateInfo.findOneAsync({ viewed: false }); if (!updateExists) { - console.log("Update doesn't exist as false."); + // console.log("Update doesn't exist as false."); return false; } else { - console.log("Update found with false."); + // console.log("Update found with false."); return true; } } @@ -179,7 +179,7 @@ Template.dashboard.events({ let result = await Meteor.callAsync('markUpdate.read', eventId); try { if (!result) { - console.log(" Error marking this read."); + // console.log(" Error marking this read."); showSnackbar("Error Marking Read!", "red"); } else { showSnackbar("Successfully Marked as Read.", "green"); diff --git a/client/General/DeleteConfModal/deleteConfirmationModal.js b/client/General/DeleteConfModal/deleteConfirmationModal.js index f153ae7..2d9d52a 100644 --- a/client/General/DeleteConfModal/deleteConfirmationModal.js +++ b/client/General/DeleteConfModal/deleteConfirmationModal.js @@ -25,9 +25,9 @@ Template.deleteConfirmationModal.events({ const delItem = async() => { let result = await Meteor.callAsync(method, deleteId); if (!result) { - console.log(" ERROR deleting item from modal: " + err); + // console.log(" ERROR deleting item from modal: " + err); } else { - console.log(" SUCCESSFULLY deleted."); + // console.log(" SUCCESSFULLY deleted."); // put the new modal open / close here // $('#modalDelete').modal('close'); } diff --git a/client/General/headerBar.js b/client/General/headerBar.js index 3a3af52..3e246f0 100644 --- a/client/General/headerBar.js +++ b/client/General/headerBar.js @@ -22,10 +22,10 @@ Template.headerBar.onRendered(function() { let isRole = await Roles.getRolesForUserAsync(userId); try { if (!isRole) { - console.log("SystemAdmin role for user not found: " + isRole);; + // console.log("SystemAdmin role for user not found: " + isRole);; } else { - console.log("Found role for the user: "); - console.dir(isRole); + // console.log("Found role for the user: "); + // console.dir(isRole); } } catch(error) { console.log(" ERROR getting role for user: " + error); diff --git a/client/ListItems/listItemTblByStore.js b/client/ListItems/listItemTblByStore.js index 4141227..a914cd0 100644 --- a/client/ListItems/listItemTblByStore.js +++ b/client/ListItems/listItemTblByStore.js @@ -58,13 +58,13 @@ Template.listItemTblByStore.events({ if (typeof itemOrder == 'undefined' || itemOrder == "" || itemOrder == false) { Meteor.call("setOrdered.listItem", itemId, function(err, result) { if (err) { - console.log(" ERROR updating order status to ordered: " + err); + // console.log(" ERROR updating order status to ordered: " + err); } }); } else { Meteor.call("setNotOrdered.listItem", itemId, function(err, result) { if (err) { - console.log(" ERROR updating order status to unordered: " + err); + // console.log(" ERROR updating order status to unordered: " + err); } }); } @@ -73,7 +73,7 @@ Template.listItemTblByStore.events({ event.preventDefault(); Meteor.call('setReceived.listItem', this._id, function(err, result) { if (err) { - console.log(" ERROR setting item as received: " + err); + // console.log(" ERROR setting item as received: " + err); } else { // console.log(" SUCCESS setting item received."); } diff --git a/client/ListItems/listItemsForm.js b/client/ListItems/listItemsForm.js index 2f73857..20959a3 100644 --- a/client/ListItems/listItemsForm.js +++ b/client/ListItems/listItemsForm.js @@ -39,7 +39,7 @@ Template.listItemsForm.helpers({ selListId = selListInfo.viewId; Session.set("listId", selListId); } else { - console.log("not finding any value for viewId."); + // console.log("not finding any value for viewId."); } } let listInfo = Lists.findOne({ _id: selListId }); @@ -100,7 +100,7 @@ Template.listItemsForm.events({ // console.log(findItemVal); let listItemInfo = Products.find({ prodName: {$regex: findItemVal + '.*', $options: 'i'}}).fetch(); if (!listItemInfo) { - console.log("No data for key input."); + // console.log("No data for key input."); } else { getDataList(listItemInfo); } @@ -128,7 +128,7 @@ const addItem = async(item, listId) => { let result = await Meteor.callAsync("add.listItem", item, listId); try { if (!result) { - console.log(" ISSUE adding list item. See logs."); + // console.log(" ISSUE adding list item. See logs."); } else { $("#findListItems").val(""); } diff --git a/client/ListItems/listItemsTbl.js b/client/ListItems/listItemsTbl.js index 497b4f9..7960b52 100644 --- a/client/ListItems/listItemsTbl.js +++ b/client/ListItems/listItemsTbl.js @@ -44,7 +44,7 @@ Template.listItemsTbl.events({ if (itemInfo.itemOrdered == true) { Meteor.call('setNotOrdered.listItem', this._id, function(err, result) { if (err) { - console.log(" ERROR setting this item as NOT ordered: " + err); + // console.log(" ERROR setting this item as NOT ordered: " + err); } else { // console.log(" SUCCESS setting this item as NOT ordered."); } @@ -52,7 +52,7 @@ Template.listItemsTbl.events({ } else { Meteor.call('setOrdered.listItem', this._id, function(err, result) { if (err) { - console.log(" ERROR marking item ordered: " + err); + // console.log(" ERROR marking item ordered: " + err); } else { // console.log(" SUCCESS marking this item ordered."); } @@ -63,7 +63,7 @@ Template.listItemsTbl.events({ event.preventDefault(); Meteor.call('setReceived.listItem', this._id, function(err, result) { if (err) { - console.log(" ERROR setting item as received: " + err); + // console.log(" ERROR setting item as received: " + err); } else { // console.log(" SUCCESS setting item received."); } diff --git a/client/Lists/listsTbl.js b/client/Lists/listsTbl.js index a905e78..05a065e 100644 --- a/client/Lists/listsTbl.js +++ b/client/Lists/listsTbl.js @@ -26,12 +26,12 @@ Template.listsTbl.events({ if (listId == "addList") { // opens the modal and allows you to add a new List } else { - console.log("listId is: " + listId); + // console.log("listId is: " + listId); Session.set("listId", listId); const addUserLast = async() => { let result = await Meteor.callAsync('add.userLast', "List", listId); if (!result) { - console.log(" ERROR setting user last list id in db: " + err); + // console.log(" ERROR setting user last list id in db: " + err); } else { setTimeout(function() { FlowRouter.go('/listitems'); @@ -53,7 +53,7 @@ Template.listsTbl.events({ const markComp = async() => { let result = await Meteor.callAsync("mark.complete", listId); if (!result) { - console.log(" ERROR marking list complete!"); + // console.log(" ERROR marking list complete!"); showSnackbar("ERROR! List Not Makred Complete!", "red"); } else { // console.log(" SUCCESS marking list complete."); diff --git a/client/MainLayout.js b/client/MainLayout.js index ebcea0b..010b72f 100644 --- a/client/MainLayout.js +++ b/client/MainLayout.js @@ -11,14 +11,14 @@ Template.MainLayout.onRendered(function() { let myprefs = await UserConfig.findOneAsync({ user: myId }); try { if (!myprefs) { - console.log("User Prefs appear undefined."); + // console.log("User Prefs appear undefined."); } else { if (myprefs.darkMode == "light") { - console.log("Found theme as light"); + // console.log("Found theme as light"); Session.set("myTheme", "light"); document.documentElement.setAttribute('theme', "light"); } else { - console.log("Found theme as dark"); + // console.log("Found theme as dark"); Session.set("myTheme", "dark"); document.documentElement.setAttribute('theme', "dark"); } diff --git a/client/MenuItems/addProdToListModal.js b/client/MenuItems/addProdToListModal.js index 79543e5..4dd32ea 100644 --- a/client/MenuItems/addProdToListModal.js +++ b/client/MenuItems/addProdToListModal.js @@ -31,9 +31,9 @@ Template.addProdToListModal.helpers({ }, productToChoose: function() { let menuItemId = Session.get("menuItemId"); - console.log("Menu Item Id received is: " + menuItemId); + // console.log("Menu Item Id received is: " + menuItemId); let prodLinkLIst = MenuProdLinks.find({ menuItemId: menuItemId}); - console.dir(prodLinkLIst); + // console.dir(prodLinkLIst); if (typeof prodLinkLIst != 'undefined' && prodLinkLIst != "" && prodLinkLIst != null) { return prodLinkLIst; } @@ -44,9 +44,9 @@ Template.addProdToListModal.events({ 'click .productListing' (event) { let itemId = event.currentTarget.id; let selected = Session.get("itemsSelected"); - console.log("Item clicked: " + itemId); + // console.log("Item clicked: " + itemId); selected.push(itemId); - console.dir(selected); + // console.dir(selected); Session.set("itemsSelected", selected); }, 'click #saveProdsToList' (event) { @@ -56,7 +56,7 @@ Template.addProdToListModal.events({ const addItemsFromMenu = async() => { let result = await Meteor.callAsync('add.itemsFromMenuItem', selectedItems, listId); if (!result) { - console.log(" ERROR adding menu components to list: " + err); + // console.log(" ERROR adding menu components to list: " + err); } else { showSnackbar("Items Added to List!", "green"); } diff --git a/client/MenuItems/menuItemsForm.js b/client/MenuItems/menuItemsForm.js index 4aeb09b..35d7b67 100644 --- a/client/MenuItems/menuItemsForm.js +++ b/client/MenuItems/menuItemsForm.js @@ -89,7 +89,7 @@ Template.menuItemsForm.events({ const addMenuItem = async() => { let result = await Meteor.callAsync('add.menuItem', menuItem); if (!result) { - console.log(" ERROR adding menu item: " + err); + // console.log(" ERROR adding menu item: " + err); } else { // console.log(" SUCCESS adding menu item."); return result; @@ -98,13 +98,13 @@ Template.menuItemsForm.events({ let addedItem = addMenuItem(); if (!addedItem) { - console.log("Item was not added."); + // console.log("Item was not added."); } else { // now add this item to the menu const addToMenu = async() => { let result2 = await Meteor.callAsync('addto.Menu', menuId, menuItem, addedItem, dateSrv); if (!result2) { - console.log(" ERROR adding menuitem to menu: " + error); + // console.log(" ERROR adding menuitem to menu: " + error); } else { $("#menuItemInp").val(""); $("#dateServed").val(""); @@ -126,7 +126,7 @@ Template.menuItemsForm.events({ const addToMenu = async() => { let result = await Meteor.callAsync('addto.Menu', menuId, menuItem, menuItemId, dateSrv, isLinked); if (!result) { - console.log(" ERROR adding menuitem to menu: " + error); + // console.log(" ERROR adding menuitem to menu: " + error); } else { // console.log("Added item to menu - no problem."); $("#menuItemInp").val(""); @@ -149,7 +149,7 @@ Template.menuItemsForm.events({ const shiftDay = async() => { let result = await Meteor.callAsync('shiftDate', menuItemId, momentAddDay); if (!result) { - console.log(" ERROR shifting meal days: " + err); + // console.log(" ERROR shifting meal days: " + err); } else { showSnackbar("Items Shifted Out by 1 Calendar Day", "green"); } diff --git a/client/MenuItems/menuItemsTbl.js b/client/MenuItems/menuItemsTbl.js index b75f811..f931e62 100644 --- a/client/MenuItems/menuItemsTbl.js +++ b/client/MenuItems/menuItemsTbl.js @@ -53,7 +53,7 @@ Template.menuItemsTbl.events({ 'click .deleteMenuItem' (event) { event.preventDefault(); let theseIds = Session.get("menuId") + "_" + this.menuItemId; - console.log("These Ids: " + theseIds); + // console.log("These Ids: " + theseIds); Session.set("deleteId", theseIds); Session.set("method", "delete.itemFromMenu"); Session.set("item", this.menuItemName); @@ -63,7 +63,7 @@ Template.menuItemsTbl.events({ event.preventDefault(); Session.set("menuItemId", this.menuItemId); Session.set("menuItemName", this.menuItemName); - console.log("menu item name = " + this.menuItemName); + // console.log("menu item name = " + this.menuItemName); }, 'click .addProdsToList' (event) { event.preventDefault(); diff --git a/client/MenuItems/modalLinkProducts.js b/client/MenuItems/modalLinkProducts.js index 674a63c..5d6bf33 100644 --- a/client/MenuItems/modalLinkProducts.js +++ b/client/MenuItems/modalLinkProducts.js @@ -53,7 +53,7 @@ Template.modalLinkProducts.events({ const addMenuProdLinks = async() => { let result = await Meteor.callAsync("add.menuProdLinks", menuItemId, menuItemName, linkObjArray); if (!result) { - console.log(" ERROR adding product links to this menu item: " + err); + // console.log(" ERROR adding product links to this menu item: " + err); } else { updMenuItemLinks(); } @@ -63,7 +63,7 @@ Template.modalLinkProducts.events({ const updMenuItemLinks = async() => { let result = await Meteor.callAsync('update.menuItemLinked', menuItemId, true); if (!result) { - console.log(" ERROR adding link to menu item: " + err); + // console.log(" ERROR adding link to menu item: " + err); } else { linkInMenu(); } @@ -72,7 +72,7 @@ Template.modalLinkProducts.events({ const linkInMenu = async() => { let result = await Meteor.callAsync('link.inMenu', menuItemId, true); if (!result) { - console.log(" ERROR adding link to menu sub-item: " + error); + // console.log(" ERROR adding link to menu sub-item: " + error); } else { showSnackbar("Products added to Menu Item successfully!", "green"); } diff --git a/client/Menus/addMenuModal.js b/client/Menus/addMenuModal.js index 449c8be..638f81d 100644 --- a/client/Menus/addMenuModal.js +++ b/client/Menus/addMenuModal.js @@ -30,9 +30,9 @@ Template.addMenuModal.events({ const addMenu = async() => { let result = await Meteor.callAsync("add.menu", menuName); if (!result) { - console.log(" ERROR adding menu: " + err); + // console.log(" ERROR adding menu: " + err); } else { - console.log(" SUCCESS adding menu."); + // console.log(" SUCCESS adding menu."); $("#menuNameInp").val(""); } } diff --git a/client/Menus/mainMenuTbl.js b/client/Menus/mainMenuTbl.js index 97fbb0b..55b884c 100644 --- a/client/Menus/mainMenuTbl.js +++ b/client/Menus/mainMenuTbl.js @@ -27,13 +27,13 @@ Template.mainMenuTbl.events({ if (sender.localName == "li") { let menuId = event.currentTarget.id; if (menuId == "addMenu") { - console.log("add menu clicked"); + // console.log("add menu clicked"); } else { - console.log("menuId is: " + menuId); + // console.log("menuId is: " + menuId); const addUserLast = async() => { let result = await Meteor.callAsync('add.userLast', "Menu", menuId); if (!result) { - console.log(" ERROR writing last menu viewed by user to db."); + // console.log(" ERROR writing last menu viewed by user to db."); } else { Session.set("menuId", menuId); Meteor.setTimeout(function() { @@ -48,9 +48,9 @@ Template.mainMenuTbl.events({ const makrMenuComp = async() => { let result = await Meteor.callAsync("markMenu.complete", menuId); if (!result) { - console.log(" ERROR: can't mark menu complete."); + // console.log(" ERROR: can't mark menu complete."); } else { - console.log(" SUCCESS marking menu complete."); + // console.log(" SUCCESS marking menu complete."); setAllMade(); } } @@ -59,9 +59,9 @@ Template.mainMenuTbl.events({ const setAllMade = async() => { let result = await Meteor.callAsync('setAllMade.menuItem', menuId); if (!result) { - console.log(" ERROR: cannot set all items as made."); + // console.log(" ERROR: cannot set all items as made."); } else { - console.log(" SUCCESS setting all items made."); + // console.log(" SUCCESS setting all items made."); } } } diff --git a/client/MyTasks/myTasksForm.js b/client/MyTasks/myTasksForm.js index d0ce6db..82e4b1a 100644 --- a/client/MyTasks/myTasksForm.js +++ b/client/MyTasks/myTasksForm.js @@ -88,10 +88,10 @@ Template.myTasksForm.events({ const addTask = async(task, date, actDate) => { let result = await Meteor.callAsync("add.myTask", task, date, actDate); if (!result) { - console.log(" ERROR adding task for self: "); + // console.log(" ERROR adding task for self: "); showSnackbar("Error adding task for self!", "red"); } else { - console.log(" SUCCESS adding task for self."); + // console.log(" SUCCESS adding task for self."); // Session.set("taskDateArr", []); // $("#myTaskName").val(""); // $("#myTaskDate").val(""); diff --git a/client/MyTasks/myTasksTbl.js b/client/MyTasks/myTasksTbl.js index cb82446..9f2bc91 100644 --- a/client/MyTasks/myTasksTbl.js +++ b/client/MyTasks/myTasksTbl.js @@ -58,7 +58,7 @@ Template.myTasksTbl.events({ const makrTaskComp = async() => { let result = await Meteor.callAsync("markTask.complete", taskId); if (!result) { - console.log(" ERROR marking task completeL " + err); + // console.log(" ERROR marking task completeL " + err); showSnackbar("ERROR Marking Task Complete!", "red"); } else { showSnackbar("Successfully Marked Task Complete!", "green"); @@ -67,7 +67,7 @@ Template.myTasksTbl.events({ }, 'click .deleteMyTask' (event) { event.preventDefault(); - console.log("detected click"); + // console.log("detected click"); Session.set("deleteId", this._id); Session.set("method", "delete.task"); Session.set("item", this.taskName); diff --git a/client/UserConfig/userConfig.js b/client/UserConfig/userConfig.js index 7c83fca..e5f8725 100644 --- a/client/UserConfig/userConfig.js +++ b/client/UserConfig/userConfig.js @@ -50,7 +50,7 @@ Template.userConfig.events({ const setDarkMode = async(mode) => { let result = await Meteor.callAsync('update.darkModePref', mode); if (!result) { - console.log(" - Did not receive back a 'result' from the update."); + // console.log(" - Did not receive back a 'result' from the update."); } else { showSnackbar("Dark Mode Preference Set to " + mode, "green"); } diff --git a/imports/api/listItems.js b/imports/api/listItems.js index eb66875..b54ef38 100644 --- a/imports/api/listItems.js +++ b/imports/api/listItems.js @@ -32,14 +32,14 @@ Meteor.methods({ // add product info first let added = await Meteor.callAsync("add.product", itemName, [""]); if (!added) { - console.log(" ERROR adding item to products: " + err); + // console.log(" ERROR adding item to products: " + err); } else { // console.log(" SUCCESS adding item to Products."); return await ListItems.insertAsync({ itemName: iname, listId: listId, - prodId: result, + prodId: added, addedBy: this.userId, itemStore: "", itemOrdered: false, @@ -81,7 +81,7 @@ Meteor.methods({ // now pull the product let prodInfo = await Products.findOneAsync({ _id: itemIds[i] }); if (!prodInfo) { - console.log("Unable to load product info."); + // console.log("Unable to load product info."); } else { ListItems.insertAsync({ itemName: prodInfo.prodName, @@ -96,7 +96,7 @@ Meteor.methods({ } } else { // product exists on list, move on to next - console.log("Product Exists on Selected List."); + // console.log("Product Exists on Selected List."); } } }, diff --git a/imports/api/menu.js b/imports/api/menu.js index cf3b8eb..3cd7939 100644 --- a/imports/api/menu.js +++ b/imports/api/menu.js @@ -165,7 +165,7 @@ Meteor.methods({ } let ids = itemIds.split('_'); - console.log("item ids: " + ids[0] + " and " + ids[1]); + // console.log("item ids: " + ids[0] + " and " + ids[1]); return await Menus.updateAsync({ _id: ids[0] }, { $pull: { diff --git a/imports/api/menuProdLinks.js b/imports/api/menuProdLinks.js index 9cfe22a..29304ca 100644 --- a/imports/api/menuProdLinks.js +++ b/imports/api/menuProdLinks.js @@ -25,12 +25,12 @@ Meteor.methods({ let linkExists = MenuProdLinks.findOne({ menuItemId: menuItemId }); if (linkExists) { - console.log("sending to update method instead."); + // console.log("sending to update method instead."); Meteor.call('update.menuPordLInks', menuItemId, menuItemName, prodNameArray, function(err, result) { if (err) { - console.log(" ERROR moving to the update method: " + err); + // console.log(" ERROR moving to the update method: " + err); } else { - console.log("Successfully updated the menu prod links.") + // console.log("Successfully updated the menu prod links.") } }); } else { diff --git a/imports/api/systemConfig.js b/imports/api/systemConfig.js index a278007..7126453 100644 --- a/imports/api/systemConfig.js +++ b/imports/api/systemConfig.js @@ -39,9 +39,9 @@ Meteor.methods({ let configId = curr._id; const addNoSys = await Meteor.callAsync('edit.noSysAdminReg', configId, admReg, genReg); if (!addNoSys) { - console.log(" Couldn't edit the system config."); + // console.log(" Couldn't edit the system config."); } else { - console.log("Success updating sys admin reg."); + // console.log("Success updating sys admin reg."); } } catch(error) { console.log(" ERROR trying to pull current system config:"); diff --git a/imports/api/tasks.js b/imports/api/tasks.js index 1fece81..a3d5a83 100644 --- a/imports/api/tasks.js +++ b/imports/api/tasks.js @@ -51,7 +51,7 @@ Meteor.methods({ let userInfo = await Meteor.users.findOneAsync({ _id: this.userId }); if (!userInfo) { - console.log("No matching user info found.") + // console.log("No matching user info found.") } else { try { return await TaskItems.insertAsync({ @@ -140,23 +140,23 @@ Meteor.methods({ let upToDate = ""; switch(timeFrame) { case "1-week": - console.log("1 Week"); + // console.log("1 Week"); upToDate = 7 * 24 * 60 * 60 * 1000; break; case "2-weeks": - console.log("2 Week"); + // console.log("2 Week"); upToDate = 14 * 24 * 60 * 60 * 1000; break; case '1-month': - console.log("1 month"); + // console.log("1 month"); upToDate = 30 * 24 * 60 * 60 * 1000; break; case '3-months': - console.log("3 months"); + // console.log("3 months"); upToDate = 90 * 24 * 60 * 60 * 1000; break; case 'all': - console.log("all"); + // console.log("all"); upToDate = 1 * 24 * 60 * 60 * 1000; break; default: diff --git a/imports/api/userLast.js b/imports/api/userLast.js index 33e156b..a370e2f 100644 --- a/imports/api/userLast.js +++ b/imports/api/userLast.js @@ -24,7 +24,7 @@ Meteor.methods({ // we'll just edit that entry with updated information let userListInfo = await UserLast.findOneAsync({ userId: this.userId, view: view }); if (!userListInfo) { - console.log("Adding new user last item."); + // console.log("Adding new user last item."); return await UserLast.insertAsync({ userId: this.userId, view: view, @@ -32,12 +32,12 @@ Meteor.methods({ dateAdded: Date(), }); } else { - console.log("Editing existing user last itme."); + // console.log("Editing existing user last itme."); // entry exists, call the edit function instead let result = await Meteor.callAsync('edit.userLast', view, viewId); if (!result) { try { - console.log("Issue editing existing entry in userLast. Check the logs."); + // console.log("Issue editing existing entry in userLast. Check the logs."); } catch(error) { console.log(" ERROR adding userLast item: " + error); console.log(error.message); @@ -56,7 +56,7 @@ Meteor.methods({ throw new Meteor.Error('Not able to change user view last setting. Make sure you are logged in with valid system administrator credentials.'); } - console.log("Edit in progress."); + // console.log("Edit in progress."); return await UserLast.updateAsync({ view: view, userId: this.userId }, { $set: { viewId: viewId,