Skip to content

Commit

Permalink
Merge pull request #19 from brandsExclusive/v2
Browse files Browse the repository at this point in the history
drop support for NODE_ENV based ssl flag
  • Loading branch information
ludbek authored Nov 12, 2018
2 parents 0b358f6 + d7bec8c commit 51e660e
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 = (process.env.NODE_ENV === 'production') || PGSSLMODE === 'require',
let ssl = ( PGSSLMODE === 'require' ),
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": "1.1.1",
"version": "2.0.0",
"description": "Simple Database query abstraction library lescapes style",
"main": "/lib/",
"devDependencies": {
Expand Down

0 comments on commit 51e660e

Please sign in to comment.