summaryrefslogtreecommitdiffstats
path: root/admportal/server/router/routes/user.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/user.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/user.js')
-rw-r--r--admportal/server/router/routes/user.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/admportal/server/router/routes/user.js b/admportal/server/router/routes/user.js
index 116bf932..40d3437c 100644
--- a/admportal/server/router/routes/user.js
+++ b/admportal/server/router/routes/user.js
@@ -26,11 +26,11 @@ router.use(bodyParser.urlencoded({
router.get('/listUsers', csp.checkAuth, function(req,res) {
dbRoutes.listUsers(req,res, {user:req.session.loggedInAdmin,code:'', msg:''} );
});
-router.get('/deleteUser', csp.checkAuth, dbRoutes.checkDB, function(req,res) {
+router.get('/deleteUser', csp.checkAuth, function(req,res) {
dbRoutes.deleteUser(req,res, {code:'', msg:''} );
});
-//router.get('/activate', csp.checkAuth, dbRoutes.checkDB, function(req,res){
+//router.get('/activate', csp.checkAuth, function(req,res){
//var _module = req.query.module;
//var rpc = req.query.rpc;
@@ -40,7 +40,7 @@ router.get('/deleteUser', csp.checkAuth, dbRoutes.checkDB, function(req,res) {
//dbRoutes.activate(req,res,_module,rpc,version,mode);
//});
-//router.get('/deactivate', csp.checkAuth, dbRoutes.checkDB, function(req,res){
+//router.get('/deactivate', csp.checkAuth, function(req,res){
//var _module = req.query.module;
//var rpc = req.query.rpc;
@@ -50,7 +50,7 @@ router.get('/deleteUser', csp.checkAuth, dbRoutes.checkDB, function(req,res) {
//dbRoutes.deactivate(req,res,_module,rpc,version,mode);
//});
-//router.get('/deleteDG', csp.checkAuth, dbRoutes.checkDB, function(req,res){
+//router.get('/deleteDG', csp.checkAuth, function(req,res){
//var _module = req.query.module;
//var rpc = req.query.rpc;
@@ -94,14 +94,14 @@ parser.onend = function () {
// POST
-router.post('/updateUser', csp.checkAuth, dbRoutes.checkDB, function(req,res,next){
+router.post('/updateUser', csp.checkAuth, function(req,res,next){
dbRoutes.updateUser(req,res,{code:'',msg:''});
});
-router.post('/addUser', csp.checkAuth, dbRoutes.checkDB, function(req,res) {
+router.post('/addUser', csp.checkAuth, function(req,res) {
dbRoutes.addUser(req,res, {code:'', msg:''} );
});
-//router.post('/upload', csp.checkAuth, dbRoutes.checkDB, function(req, res, next){
+//router.post('/upload', csp.checkAuth, function(req, res, next){
/*
logger.debug("upload");