From daf40e0f8e7b2ceb33556911ffc6facfa1b7939c Mon Sep 17 00:00:00 2001 From: Avraham Sakal Date: Wed, 14 Jun 2023 22:17:19 -0400 Subject: [PATCH] fix: ingest: await create index --- src/ingest.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ingest.ts b/src/ingest.ts index 375c5b3..153b020 100644 --- a/src/ingest.ts +++ b/src/ingest.ts @@ -160,5 +160,5 @@ export async function ingestOptions(sourceDataDir:string):Promise{ }; }; console.log("creating index"); - sql`CREATE INDEX ON "option_quote" USING btree ("underlying","expiration","type","strike","quote_date");`; + await sql`CREATE INDEX ON "option_quote" USING btree ("underlying","expiration","type","strike","quote_date");`; } \ No newline at end of file