From 951944277151da8f3b09cc8004c79d5a0e920d07 Mon Sep 17 00:00:00 2001 From: 2ManyProjects Date: Mon, 28 Apr 2025 13:59:02 -0500 Subject: [PATCH] lkogging --- backend/src/services/notificationService.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/src/services/notificationService.js b/backend/src/services/notificationService.js index aa0d567..6311ba3 100644 --- a/backend/src/services/notificationService.js +++ b/backend/src/services/notificationService.js @@ -81,7 +81,10 @@ const notificationService = { const transporter = this.createTransporter(); // Send notifications for each low stock product + console.log(JSON.stringify(lowStockProducts, null, 4)) for (const product of lowStockProducts.rows) { + console.log(JSON.stringify(product, null, 4)) + console.log(typeof product.stock_notification) const notification = JSON.parse(product.stock_notification); try {