Commenting out console logging.

This commit is contained in:
Brian McGonagill 2025-07-23 19:44:24 -05:00
parent 4687f27011
commit d25ef56591
31 changed files with 87 additions and 87 deletions

View file

@ -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.");
}
}
},

View file

@ -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: {

View file

@ -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 {

View file

@ -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:");

View file

@ -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:

View file

@ -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,