lkogging
This commit is contained in:
parent
4829dbdd16
commit
9519442771
1 changed files with 3 additions and 0 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue