diff options
Diffstat (limited to 'packages/pipeline/src')
-rw-r--r-- | packages/pipeline/src/merge_v2_events.ts | 5 | ||||
-rw-r--r-- | packages/pipeline/src/ormconfig.ts | 2 |
2 files changed, 5 insertions, 2 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.'); } diff --git a/packages/pipeline/src/ormconfig.ts b/packages/pipeline/src/ormconfig.ts index 6201d4f37..eaafeb7d5 100644 --- a/packages/pipeline/src/ormconfig.ts +++ b/packages/pipeline/src/ormconfig.ts @@ -17,7 +17,7 @@ export const deployConfig: ConnectionOptions = { type: 'postgres', url: process.env.ZEROEX_DATA_PIPELINE_DB_URL, synchronize: true, - logging: true, + logging: false, entities: ['./lib/src/entities/**/*.js'], migrations: ['./lib/src/migrations/**/*.js'], cli: { |