config prod
This commit is contained in:
@@ -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');
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user