aboutsummaryrefslogtreecommitdiffstats
path: root/admportal/server/router/routes/preload.js
diff options
context:
space:
mode:
authorAl Rotundo <arotundo@att.com>2017-03-24 13:54:52 +0000
committerAl Rotundo <arotundo@att.com>2017-03-27 11:56:12 +0000
commit2f8e4d0c778ce07a1da90a7aefa65467cd572286 (patch)
tree20e6a8cf92b44c0bd86cf79abedf66ce9a6eb51b /admportal/server/router/routes/preload.js
parent1866ffb76aa155772bc1adf778d93d368f1e1c62 (diff)
[SDNGC-XXXX] fixing sql connection leak
was not cleaning up sql connections during checkDB, removed call to checkDB, redundant Change-Id: I3d4a10cb7b743eb68a1969c1719c376829bc27c3 Signed-off-by: Al Rotundo <arotundo@att.com> Former-commit-id: d9b6e415838e94bf485c01a3f5d6aaa841e37c45
Diffstat (limited to 'admportal/server/router/routes/preload.js')
-rw-r--r--admportal/server/router/routes/preload.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/admportal/server/router/routes/preload.js b/admportal/server/router/routes/preload.js
index 1a63ec0e..fd41bb44 100644
--- a/admportal/server/router/routes/preload.js
+++ b/admportal/server/router/routes/preload.js
@@ -35,9 +35,6 @@ var options = {
strictSSL: false
};
-// Connection to OpenDaylight
-Odl = require('./Odl');
-
// multer 1.1
var unixTime = moment().unix();
var storage = multer.diskStorage({
@@ -60,7 +57,7 @@ var upload = multer({
}
});
-router.post('/uploadVnfCsv', csp.checkAuth, dbRoutes.checkDB, upload.array('filename'), function(req, res)
+router.post('/uploadVnfCsv', csp.checkAuth, upload.array('filename'), function(req, res)
{
console.log('files:'+ JSON.stringify(req.files,null,4));
@@ -91,7 +88,7 @@ router.post('/uploadVnfCsv', csp.checkAuth, dbRoutes.checkDB, upload.array('file
});
-router.post('/uploadNetworkCsv', csp.checkAuth, dbRoutes.checkDB, upload.array('filename'), function(req, res)
+router.post('/uploadNetworkCsv', csp.checkAuth, upload.array('filename'), function(req, res)
{
console.log('files:'+ JSON.stringify(req.files,null,4));