diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-10-20 05:05:35 +0800 |
---|---|---|
committer | Fred Carlsen <fred@sjelfull.no> | 2018-12-13 01:12:53 +0800 |
commit | da5e8b09d9f7fc3125918347aab19ba8e0e14984 (patch) | |
tree | 311c2a76d76188c0096ae8f9fa25545826ccc940 | |
parent | fff1e2cfa72d0f09ff839a361fc133907337bf4b (diff) | |
download | dexon-0x-contracts-da5e8b09d9f7fc3125918347aab19ba8e0e14984.tar.gz dexon-0x-contracts-da5e8b09d9f7fc3125918347aab19ba8e0e14984.tar.zst dexon-0x-contracts-da5e8b09d9f7fc3125918347aab19ba8e0e14984.zip |
Fix bugs in merge_v2_events script and disable verbose logging
-rw-r--r-- | packages/pipeline/src/merge_v2_events.ts | 5 |
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.'); } |