Moar attempts

This commit is contained in:
=
2020-09-14 14:46:21 -07:00
parent d7a680a3ac
commit 8031f6f8a3

View File

@@ -44,8 +44,12 @@ const crawl = () => {
crawlerRunning = true;
crawlAll().then(newRealEstates => {
logDebug("crawlAll done, new real estate len: ", newRealEstates.length);
crawlerRunning = false;
notifyForNewRealEstates(newRealEstates);
}).catch(e => {
console.error('Error happened: ', e);
}).finally(()=> {
crawlerRunning = false;
logDebug('Finally done!');
});
}
};