diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-10-20 05:05:35 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-12-05 06:24:48 +0800 |
commit | aeff948c9a89b07117a714cc7af1c1a3c810f0b7 (patch) | |
tree | bccdbcd9d6fd04e6c17f5c50961e87715f03355b /packages/pipeline/src/merge_v2_events.ts | |
parent | 7945d2ea62f3a2bca363f9a37b471e02531490c7 (diff) | |
download | dexon-sol-tools-aeff948c9a89b07117a714cc7af1c1a3c810f0b7.tar dexon-sol-tools-aeff948c9a89b07117a714cc7af1c1a3c810f0b7.tar.gz dexon-sol-tools-aeff948c9a89b07117a714cc7af1c1a3c810f0b7.tar.bz2 dexon-sol-tools-aeff948c9a89b07117a714cc7af1c1a3c810f0b7.tar.lz dexon-sol-tools-aeff948c9a89b07117a714cc7af1c1a3c810f0b7.tar.xz dexon-sol-tools-aeff948c9a89b07117a714cc7af1c1a3c810f0b7.tar.zst dexon-sol-tools-aeff948c9a89b07117a714cc7af1c1a3c810f0b7.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.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.'); } |