fix: ingest: await create index

This commit is contained in:
2023-06-14 22:17:19 -04:00
parent a0e3df17c9
commit daf40e0f8e
+1 -1
View File
@@ -160,5 +160,5 @@ export async function ingestOptions(sourceDataDir:string):Promise<void>{
};
};
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");`;
}