Skip to content

Commit

Permalink
Merge pull request #21 from lux-group/ssl-change-to-support-pg8-try2
Browse files Browse the repository at this point in the history
remove unsupported no-verify
  • Loading branch information
richardbiddle authored Jan 22, 2021
2 parents eee37cf + 10d3e8c commit 0489898
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' || PGSSLMODE === 'no-verify' ? { rejectUnauthorized: false } : false),
let ssl = ( PGSSLMODE === 'require' ? { 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": "3.0.0",
"version": "4.0.0",
"description": "Simple Database query abstraction library lescapes style",
"main": "/lib/",
"devDependencies": {
Expand Down

0 comments on commit 0489898

Please sign in to comment.