Fix bugs in merge_v2_events script and disable verbose logging

This commit is contained in:
Alex Browne 2018-10-19 14:05:35 -07:00
parent 7945d2ea62
commit aeff948c9a
No known key found for this signature in database
GPG Key ID: CA6B8D4AFA783512
2 changed files with 5 additions and 2 deletions

View File

@ -31,7 +31,10 @@ async function getExchangeEventsAsync(): Promise<void> {
const events = parseExchangeEvents(eventLogs); const events = parseExchangeEvents(eventLogs);
console.log(`Retrieved and parsed ${events.length} total events.`); console.log(`Retrieved and parsed ${events.length} total events.`);
console.log('Saving 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.'); console.log('Saved events.');
} }

View File

@ -17,7 +17,7 @@ export const deployConfig: ConnectionOptions = {
type: 'postgres', type: 'postgres',
url: process.env.ZEROEX_DATA_PIPELINE_DB_URL, url: process.env.ZEROEX_DATA_PIPELINE_DB_URL,
synchronize: true, synchronize: true,
logging: true, logging: false,
entities: ['./lib/src/entities/**/*.js'], entities: ['./lib/src/entities/**/*.js'],
migrations: ['./lib/src/migrations/**/*.js'], migrations: ['./lib/src/migrations/**/*.js'],
cli: { cli: {