Skip to content

Commit

Permalink
Merge pull request #62 from ao508/fix-nats-conn
Browse files Browse the repository at this point in the history
Fix NATS connection problem
  • Loading branch information
ao508 authored Jan 31, 2023
2 parents 18a0c55 + 2ea5c73 commit b0e8c06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion graphql-server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ const tlsOptions = {
keyFile: nats_key_pem,
certFile: nats_cert_pem,
caFile: nats_ca_pem,
rejectUnauthorized: false,
};

const natsConnProperties = {
Expand Down Expand Up @@ -115,7 +116,7 @@ const sessionFactory = () =>
driver.session({ defaultAccessMode: neo4j.session.WRITE });

async function main() {
//establishConnection(); // for nats only
establishConnection(); // for nats only

const app: Express = express();
app.use(express.static(path.resolve(__dirname, "../build")));
Expand Down

0 comments on commit b0e8c06

Please sign in to comment.