remove excess logic

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

@ -425,11 +425,8 @@ 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()
} else {
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);
if (process.env.TX) { if (process.env.TX) {
@ -437,5 +434,4 @@ if (process.env.SCRAPE) {
continue; continue;
} }
c.scrape(); c.scrape();
}
} }
Loading…
Cancel
Save