remove excess logic

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

@ -425,10 +425,7 @@ async function writeToDatabase(_q) {
// c.getSalesEvents('0xe567d00bb0c16928d5d8c258de8dd928e93209b40f7c958bc485d2a6c549b8a9') // c.getSalesEvents('0xe567d00bb0c16928d5d8c258de8dd928e93209b40f7c958bc485d2a6c549b8a9')
// return // return
if (process.env.SCRAPE) {
let c = new Scrape(process.env.SCRAPE)
c.scrape()
} else {
for(const key in ALL_CONTRACTS) { for(const key in ALL_CONTRACTS) {
if (process.env.ONLY && process.env.ONLY != key) continue if (process.env.ONLY && process.env.ONLY != key) continue
const c = new Scrape(key); const c = new Scrape(key);
@ -438,4 +435,3 @@ if (process.env.SCRAPE) {
} }
c.scrape(); c.scrape();
} }
}

Loading…
Cancel
Save