aboutsummaryrefslogtreecommitdiff
path: root/node_simple.js
diff options
context:
space:
mode:
authornanalelfe <nargiza.nosirova@mail.utoronto.ca>2016-07-25 06:59:56 +0000
committernanalelfe <nargiza.nosirova@mail.utoronto.ca>2016-07-25 06:59:56 +0000
commit1032205c1a94ae31d780d2c339abbe628eb27fae (patch)
tree7cc15d706f5fbd1c624341e781219710287088cf /node_simple.js
parent553e5d112f34c6be19b388fea110dcdceb7015bd (diff)
parent2b0ca1332175139e44235c3ac3390d5f26eae7e1 (diff)
Merge branch 'master' of https://github.com/HumairAK/solutions_repo
Diffstat (limited to 'node_simple.js')
-rw-r--r--node_simple.js7
1 files changed, 0 insertions, 7 deletions
diff --git a/node_simple.js b/node_simple.js
index a3d0f6e..0290519 100644
--- a/node_simple.js
+++ b/node_simple.js
@@ -104,13 +104,6 @@ var uri = exports.uri = 'mongodb://general:assignment4@ds057862.mlab.com:57862/
/*refer to testImports.js*/
//****************************FUNCTIONS************************************************|
-exports.closeDB = function(){
- mongoFactory.getConnection(uri).then(function(db) {
- db.close();
- }).catch(function(err){
- console.error(err);
- });
-};
/**
* Remvove a course from ONLY the courses table IN CASE of accidental