remove excess logic

pull/2/head
lza_menace 2 years ago
parent a14a0d07fe
commit 6d59ef5eb4

@ -425,17 +425,13 @@ async function writeToDatabase(_q) {
// c.getSalesEvents('0xe567d00bb0c16928d5d8c258de8dd928e93209b40f7c958bc485d2a6c549b8a9') // c.getSalesEvents('0xe567d00bb0c16928d5d8c258de8dd928e93209b40f7c958bc485d2a6c549b8a9')
// return // return
if (process.env.SCRAPE) {
let c = new Scrape(process.env.SCRAPE) for(const key in ALL_CONTRACTS) {
c.scrape() if (process.env.ONLY && process.env.ONLY != key) continue
} else { const c = new Scrape(key);
for(const key in ALL_CONTRACTS) { if (process.env.TX) {
if (process.env.ONLY && process.env.ONLY != key) continue c.getSalesEvents(process.env.TX);
const c = new Scrape(key); continue;
if (process.env.TX) {
c.getSalesEvents(process.env.TX);
continue;
}
c.scrape();
} }
} c.scrape();
}
Loading…
Cancel
Save