Skip to content

Commit

Permalink
Change read and assign
Browse files Browse the repository at this point in the history
  • Loading branch information
brunocamboim committed Dec 7, 2022
1 parent 50338ca commit 3300db0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@obi-tec/manager-postgres-database",
"version": "2.1.2",
"version": "2.1.3",
"description": "A simple library to help developers to manage connections and queries on postgres database",
"main": "src/index.js",
"private": false,
Expand Down
4 changes: 2 additions & 2 deletions src/_connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ class DatabaseConnection {
*/
static getInstance(
connectionName = 'default',
isRead = false,
{
connectionSettings = {
application_name : '',
Expand All @@ -179,9 +178,10 @@ class DatabaseConnection {
password : '',
database : ''
},
isRead = false,
enableLogs = false,
camelizeKeys = true
}) {
} = {}) {
if (typeof instances[connectionName] === 'undefined') {
instances[connectionName] = new Database(connectionName, connectionSettings, readConnectionSettings, isRead, enableLogs, camelizeKeys);
}
Expand Down

0 comments on commit 3300db0

Please sign in to comment.