From 7ab44b5309c02424f8a06cf34786ddc771433fbe Mon Sep 17 00:00:00 2001 From: mike-eason Date: Tue, 10 Jan 2017 11:51:41 +0000 Subject: [PATCH] :bug: Fixed issue with multiple instances of oledb using the same connection string. --- index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/index.js b/index.js index 32779a8..36891f7 100644 --- a/index.js +++ b/index.js @@ -1,13 +1,11 @@ const edge = require('edge'); const data = edge.func(__dirname + '/Data.cs'); -let connectionString; - module.exports = function(constring) { if (constring == null || constring.trim() === '') throw 'constring must not be null or empty'; - connectionString = constring; + let connectionString = constring; function executePromise(command, type) { return new Promise(function(resolve, reject) {