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