Skip to content

Commit

Permalink
Update the connection method
Browse files Browse the repository at this point in the history
  • Loading branch information
CannonLock committed Oct 20, 2023
1 parent 42e1298 commit 21561a0
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions v2/larkin.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,7 @@ var mysql = require("mysql"),
const nameMapping = credentials.postgresDatabases ?? {}
const dbName = nameMapping[db] ?? db

const pool = new pg.Pool({
user: credentials.pg.user,
password: credentials.pg.password,
host: credentials.pg.host,
port: credentials.pg.port,
database: dbName
});
const pool = new pg.Pool({connectionString: credentials.pg.connectionString});

pool.connect(function(err, client, done) {
if (err) {
Expand Down

0 comments on commit 21561a0

Please sign in to comment.