Removed comment

master
Mark Moffat 2019-06-09 22:00:26 +09:30
parent f37e521768
commit 10d04c2485
1 changed files with 1 additions and 1 deletions

2
app.js
View File

@ -323,7 +323,6 @@ app.on('uncaughtException', (err) => {
process.exit(2); process.exit(2);
}); });
// MongoClient.connect(config.databaseConnectionString, {}, (err, client) => {
initDb(config.databaseConnectionString, (err, db) => { initDb(config.databaseConnectionString, (err, db) => {
// On connection error we display then exit // On connection error we display then exit
if(err){ if(err){
@ -357,6 +356,7 @@ initDb(config.databaseConnectionString, (err, db) => {
// lift the app // lift the app
app.emit('appStarted'); app.emit('appStarted');
console.log(colors.green('expressCart running on host: http://localhost:' + app.get('port'))); console.log(colors.green('expressCart running on host: http://localhost:' + app.get('port')));
return;
}) })
.catch((err) => { .catch((err) => {
console.error(colors.red('Error setting up indexes:' + err)); console.error(colors.red('Error setting up indexes:' + err));