Add console log for first run completion in price comparison function to enhance debugging and monitoring.
This commit is contained in:
1
index.js
1
index.js
@@ -49,6 +49,7 @@ async function compareAndSave(productsPrice) {
|
|||||||
for (const product of productsPrice) {
|
for (const product of productsPrice) {
|
||||||
sendMessage(`Początkowa cena **${product.name}**: ${product.price}`);
|
sendMessage(`Początkowa cena **${product.name}**: ${product.price}`);
|
||||||
}
|
}
|
||||||
|
console.log("First run completed");
|
||||||
isFirstRun = false;
|
isFirstRun = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user