This commit is contained in:
2ManyProjects 2025-04-28 13:59:02 -05:00
parent 4829dbdd16
commit 9519442771

View file

@ -81,7 +81,10 @@ const notificationService = {
const transporter = this.createTransporter(); const transporter = this.createTransporter();
// Send notifications for each low stock product // Send notifications for each low stock product
console.log(JSON.stringify(lowStockProducts, null, 4))
for (const product of lowStockProducts.rows) { 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); const notification = JSON.parse(product.stock_notification);
try { try {