Skip to content

Commit

Permalink
fix(indexer): load warthog env vars for db models
Browse files Browse the repository at this point in the history
  • Loading branch information
metmirr committed Jun 14, 2020
1 parent fac7774 commit 9d96757
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ async function main() {
"WS_PROVIDER_ENDPOINT_URI environment variable is not set! Make sure you set it in your .env file or system wide."
);
}


// Required for warthog models.
dotenv.config({ path: '../graphql-server/.env' });
await createConnection();

const node = new QueryNodeManager(process);
Expand Down

0 comments on commit 9d96757

Please sign in to comment.