go-database
Advanced tools
Comparing version 1.0.5 to 1.0.6
{ | ||
"name": "go-database", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Database connection factory", | ||
@@ -5,0 +5,0 @@ "main": "./src/lib/index.js", |
@@ -9,7 +9,7 @@ const mssql = require('mssql'); | ||
new mssql.ConnectionPool(dbConfig).connect().then((pool) => { | ||
new mssql.ConnectionPool(dbConfig).connect().then((connection) => { | ||
console.debug("Conectado ao banco de dados."); | ||
global['odin-database-connection'] = pool; | ||
global['go-database-connection'] = connection; | ||
@@ -30,3 +30,3 @@ return resolve(); | ||
return global['odin-database-connection']; | ||
return global['go-database-connection']; | ||
@@ -37,3 +37,3 @@ }, | ||
let connection = global['odin-database-connection']; | ||
let connection = global['go-database-connection']; | ||
@@ -40,0 +40,0 @@ return new Promise((resolve, reject) => { |
@@ -7,3 +7,3 @@ const connectionFactory = require('./connection-factory'); | ||
let connection = global['odin-database-connection']; | ||
let connection = global['go-database-connection']; | ||
@@ -34,3 +34,3 @@ return new Promise((resolve, reject) => { | ||
connection = global['odin-database-connection']; | ||
connection = global['go-database-connection']; | ||
@@ -37,0 +37,0 @@ return resolve(getTransaction(connection, false)); |
31858
26