diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-11-13 08:40:20 +0800 |
---|---|---|
committer | Fred Carlsen <fred@sjelfull.no> | 2018-12-06 19:04:25 +0800 |
commit | e69cdfb7b5b0b4c7517d5439d45888702c6a1b71 (patch) | |
tree | afe81359d658671d470874db8718375d5f6925fd /packages/pipeline/src/scripts/pull_missing_events.ts | |
parent | 45da317e15960037024d9c04c1a08135a2889843 (diff) | |
download | dexon-0x-contracts-e69cdfb7b5b0b4c7517d5439d45888702c6a1b71.tar.gz dexon-0x-contracts-e69cdfb7b5b0b4c7517d5439d45888702c6a1b71.tar.zst dexon-0x-contracts-e69cdfb7b5b0b4c7517d5439d45888702c6a1b71.zip |
Configure TypeORM for migrations. Add new package.json scripts.
Diffstat (limited to 'packages/pipeline/src/scripts/pull_missing_events.ts')
-rw-r--r-- | packages/pipeline/src/scripts/pull_missing_events.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/pipeline/src/scripts/pull_missing_events.ts b/packages/pipeline/src/scripts/pull_missing_events.ts index cca0d9cfe..e2b312280 100644 --- a/packages/pipeline/src/scripts/pull_missing_events.ts +++ b/packages/pipeline/src/scripts/pull_missing_events.ts @@ -2,11 +2,11 @@ import { web3Factory } from '@0x/dev-utils'; import { Web3ProviderEngine } from '@0x/subproviders'; import R = require('ramda'); import 'reflect-metadata'; -import { Connection, createConnection, Repository } from 'typeorm'; +import { Connection, ConnectionOptions, createConnection, Repository } from 'typeorm'; import { ExchangeEventsSource } from '../data_sources/contract-wrappers/exchange_events'; import { ExchangeFillEvent } from '../entities'; -import { deployConfig } from '../ormconfig'; +import * as ormConfig from '../ormconfig'; import { parseExchangeEvents } from '../parsers/events'; import { handleError } from '../utils'; @@ -17,7 +17,7 @@ const BATCH_SAVE_SIZE = 1000; // Number of events to save at once. let connection: Connection; (async () => { - connection = await createConnection(deployConfig); + connection = await createConnection(ormConfig as ConnectionOptions); const provider = web3Factory.getRpcProvider({ rpcUrl: 'https://mainnet.infura.io', }); |