Skip to content
Snippets Groups Projects
Commit 1a084963 authored by Robin Keskisärkkä's avatar Robin Keskisärkkä
Browse files

rename created database

parent b41d7ebd
Branches
No related tags found
No related merge requests found
...@@ -12,7 +12,7 @@ function openDatabaseConnection(callback){ ...@@ -12,7 +12,7 @@ function openDatabaseConnection(callback){
MongoClient.connect(url, (err, client) => { MongoClient.connect(url, (err, client) => {
if(err) throw err; if(err) throw err;
_client = client; _client = client;
_db = client.db('users'); _db = client.db('test');
// If a callback function was provided, run it // If a callback function was provided, run it
if(callback){ if(callback){
return callback(); return callback();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment