aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/src/merge_v2_events.ts
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-10-20 05:05:35 +0800
committerFred Carlsen <fred@sjelfull.no>2018-12-06 19:04:24 +0800
commitef00ac6f51642071454a706377a326b44c3ccd8b (patch)
tree1e42dd98c0e25ae831d356a87b1bbb9aa4ad8fb6 /packages/pipeline/src/merge_v2_events.ts
parent7a7c66b0ec99107e6aadcde1bad6ad5ec686c579 (diff)
downloaddexon-0x-contracts-ef00ac6f51642071454a706377a326b44c3ccd8b.tar.gz
dexon-0x-contracts-ef00ac6f51642071454a706377a326b44c3ccd8b.tar.zst
dexon-0x-contracts-ef00ac6f51642071454a706377a326b44c3ccd8b.zip
Fix bugs in merge_v2_events script and disable verbose logging
Diffstat (limited to 'packages/pipeline/src/merge_v2_events.ts')
-rw-r--r--packages/pipeline/src/merge_v2_events.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/pipeline/src/merge_v2_events.ts b/packages/pipeline/src/merge_v2_events.ts
index 58646fc56..71d5e1806 100644
--- a/packages/pipeline/src/merge_v2_events.ts
+++ b/packages/pipeline/src/merge_v2_events.ts
@@ -31,7 +31,10 @@ async function getExchangeEventsAsync(): Promise<void> {
const events = parseExchangeEvents(eventLogs);
console.log(`Retrieved and parsed ${events.length} total events.`);
console.log('Saving events...');
- eventsRepository.save(events);
+ for (const event of events) {
+ await eventsRepository.save(event);
+ }
+ await eventsRepository.save(events);
console.log('Saved events.');
}