fix: ingest: await create index

master
Avraham Sakal 2 years ago
parent a0e3df17c9
commit daf40e0f8e

@ -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");`;
}
Loading…
Cancel
Save