From da5e8b09d9f7fc3125918347aab19ba8e0e14984 Mon Sep 17 00:00:00 2001 From: Alex Browne Date: Fri, 19 Oct 2018 14:05:35 -0700 Subject: Fix bugs in merge_v2_events script and disable verbose logging --- packages/pipeline/src/merge_v2_events.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'packages') 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 { 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.'); } -- cgit v1.2.3