config prod

This commit is contained in:
2024-10-16 09:28:23 +02:00
parent e7a78dcaad
commit 2718e44478
9 changed files with 136 additions and 47 deletions
+4 -5
View File
@@ -428,8 +428,6 @@ class Drouot extends Scraper {
page.close()
browser.close()
}
return
// create the live URL
let {saleID} = await this.platformData.getUrlInfo(this.Url);
@@ -468,13 +466,14 @@ class Drouot extends Scraper {
return
}
})
}, 10000); // 10000 milliseconds = 10 seconds
}, 10 * 1000); // 10 seconds
// Check every minute if the last event is more than 10 minutes ago
CheckLastBid = setInterval(() => {
console.log("--CheckLastBid-- lastbid: "+lastbid+" Date.now()"+Date.now());
if (lastbid && Date.now() - lastbid > 10 * 60 * 1000) {
console.log("More than 10 minutes since the last bid.");
this.JucundusSetSaleStatus(saleInfo, 'end')
console.log("More than 10 minutes since the last bid.");
(async () => {
await StopLive('end');
})();