aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/src/index.ts
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-09-28 08:32:56 +0800
committerFred Carlsen <fred@sjelfull.no>2018-12-13 01:12:18 +0800
commit27c229a146a0a58a9f314813cdf01067c7a22fb3 (patch)
tree32c14198b875919ab7e36d936e68e787ec00451f /packages/pipeline/src/index.ts
parent43c2b81604c3791c7155fd6b41044b105189d4df (diff)
downloaddexon-sol-tools-27c229a146a0a58a9f314813cdf01067c7a22fb3.tar
dexon-sol-tools-27c229a146a0a58a9f314813cdf01067c7a22fb3.tar.gz
dexon-sol-tools-27c229a146a0a58a9f314813cdf01067c7a22fb3.tar.bz2
dexon-sol-tools-27c229a146a0a58a9f314813cdf01067c7a22fb3.tar.lz
dexon-sol-tools-27c229a146a0a58a9f314813cdf01067c7a22fb3.tar.xz
dexon-sol-tools-27c229a146a0a58a9f314813cdf01067c7a22fb3.tar.zst
dexon-sol-tools-27c229a146a0a58a9f314813cdf01067c7a22fb3.zip
Add tests for SRA order conversion
Diffstat (limited to 'packages/pipeline/src/index.ts')
-rw-r--r--packages/pipeline/src/index.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/pipeline/src/index.ts b/packages/pipeline/src/index.ts
index c442c7970..a1dbb35ff 100644
--- a/packages/pipeline/src/index.ts
+++ b/packages/pipeline/src/index.ts
@@ -4,7 +4,7 @@ import { Connection, createConnection } from 'typeorm';
import { Etherscan } from './data_sources/etherscan';
import { parseExchangeEvents } from './data_types/events/exchange_events';
-import { parseSraOrders } from './data_types/sra_order';
+import { parseSraOrders } from './data_types/sra_orders';
import { ExchangeCancelEvent } from './entities/ExchangeCancelEvent';
import { ExchangeCancelUpToEvent } from './entities/ExchangeCancelUpToEvent';
import { ExchangeFillEvent } from './entities/ExchangeFillEvent';
@@ -53,7 +53,7 @@ async function getSraOrdersAsync(): Promise<void> {
const orders = parseSraOrders(rawOrders);
for (const order of orders) {
order.sourceUrl = sraUrl;
- order.save();
+ await order.save();
}
console.log(`now there are ${await orderRepository.count()} total orders`);
}