[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
diff --git a/admportal/server/router/routes/root.js b/admportal/server/router/routes/root.js
index f586892..b314d7d 100644
--- a/admportal/server/router/routes/root.js
+++ b/admportal/server/router/routes/root.js
@@ -5,7 +5,7 @@
var sla = require('./sla');
var os = require('os');
var async = require('async');
-var Odl = require('./Odl');
+var OdlInterface = require('./OdlInterface');
var properties = require(process.env.SDNC_CONFIG_DIR + '/admportal.json');
@@ -67,7 +67,7 @@
});
function createFunctionObj( loptions ) {
- return function(callback) { Odl.Healthcheck(loptions,callback); };
+ return function(callback) { OdlInterface.Healthcheck(loptions,callback); };
}
router.get('/mytree', function(req,res) {
@@ -76,13 +76,13 @@
router.get('/setuplogin', function(req,res) {
res.render('pages/setuplogin');
});
-router.post('/formSetupLogin', dbRoutes.checkDB, function(req,res) {
+router.post('/formSetupLogin', function(req,res) {
dbRoutes.saveSetupLogin(req,res);
});
-router.post('/formSignUp', dbRoutes.checkDB, function(req,res) {
+router.post('/formSignUp', function(req,res) {
dbRoutes.saveUser(req,res);
});
-router.post('/formlogin', csp.login, dbRoutes.checkDB, function(req,res) {
+router.post('/formlogin', csp.login, function(req,res) {
});
router.get('/login', function(req,res) {
res.render('pages/login');