aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/src/scripts/update_relayer_info.ts
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-11-13 08:40:20 +0800
committerFred Carlsen <fred@sjelfull.no>2018-12-06 19:04:25 +0800
commite69cdfb7b5b0b4c7517d5439d45888702c6a1b71 (patch)
treeafe81359d658671d470874db8718375d5f6925fd /packages/pipeline/src/scripts/update_relayer_info.ts
parent45da317e15960037024d9c04c1a08135a2889843 (diff)
downloaddexon-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/update_relayer_info.ts')
-rw-r--r--packages/pipeline/src/scripts/update_relayer_info.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/pipeline/src/scripts/update_relayer_info.ts b/packages/pipeline/src/scripts/update_relayer_info.ts
index 051289992..af9dd726e 100644
--- a/packages/pipeline/src/scripts/update_relayer_info.ts
+++ b/packages/pipeline/src/scripts/update_relayer_info.ts
@@ -1,9 +1,9 @@
import 'reflect-metadata';
-import { Connection, createConnection } from 'typeorm';
+import { Connection, ConnectionOptions, createConnection } from 'typeorm';
import { RelayerRegistrySource } from '../data_sources/relayer-registry';
import { Relayer } from '../entities';
-import { deployConfig } from '../ormconfig';
+import * as ormConfig from '../ormconfig';
import { parseRelayers } from '../parsers/relayer_registry';
import { handleError } from '../utils';
@@ -15,7 +15,7 @@ const RELAYER_REGISTRY_URL =
let connection: Connection;
(async () => {
- connection = await createConnection(deployConfig);
+ connection = await createConnection(ormConfig as ConnectionOptions);
await getRelayers();
process.exit(0);
})().catch(handleError);