Skip to content

Commit

Permalink
Merge pull request #20 from lux-group/ssl-change-to-support-pg8
Browse files Browse the repository at this point in the history
Change to address breaking change to pg 8
  • Loading branch information
richardbiddle authored Jan 21, 2021
2 parents 51e660e + 66608c3 commit eee37cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports.setDatabaseUrl = (url) => databaseUrl = url
module.exports.getDatabaseUrl = () => databaseUrl

const params = url.parse(databaseUrl);
let ssl = ( PGSSLMODE === 'require' ),
let ssl = ( PGSSLMODE === 'require' || PGSSLMODE === 'no-verify' ? { rejectUnauthorized: false } : false),
auth = params.auth.split(':'),
config = {
user: auth[0],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lib-lequel",
"version": "2.0.0",
"version": "3.0.0",
"description": "Simple Database query abstraction library lescapes style",
"main": "/lib/",
"devDependencies": {
Expand Down

0 comments on commit eee37cf

Please sign in to comment.