Skip to content

Commit

Permalink
fix: issue with connection string (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
vijayg10 authored Jun 7, 2023
1 parent ec3f41f commit bbe3fe0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/prisma.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ const createCentralLedgerClient = (logQuery = false): CentralLedgerClient => {
csMysqlObj.setDefaults({
protocol: 'mysql',
hosts: [{ name: Config.REPORTING_DB.HOST, port: Config.REPORTING_DB.PORT }],
user: encodeURIComponent(Config.REPORTING_DB.USER),
password: encodeURIComponent(Config.REPORTING_DB.PASSWORD),
user: Config.REPORTING_DB.USER,
password: Config.REPORTING_DB.PASSWORD,
path: [Config.REPORTING_DB.SCHEMA],
});

Expand All @@ -38,8 +38,8 @@ const createEventStoreClient = (logQuery = false): EventStoreClient => {
csMongoDBObj.setDefaults({
protocol: 'mongodb',
hosts: [{ name: Config.EVENT_STORE_DB.HOST, port: Config.EVENT_STORE_DB.PORT }],
user: encodeURIComponent(Config.EVENT_STORE_DB.USER),
password: encodeURIComponent(Config.EVENT_STORE_DB.PASSWORD),
user: Config.EVENT_STORE_DB.USER,
password: Config.EVENT_STORE_DB.PASSWORD,
path: [Config.EVENT_STORE_DB.DATABASE],
});
return new EventStoreClient({
Expand Down

0 comments on commit bbe3fe0

Please sign in to comment.