Skip to content

Node.js based forum software built for the modern web

fixed missing winston

Baris Soner Usakli8f769d53a3be
diff --git a/src/database.js b/src/database.js
index 47c76c30c1..ba52b99d52 100644
--- a/src/database.js
+++ b/src/database.js
@@ -1,12 +1,13 @@
var nconf = require('nconf'),
- databaseType = nconf.get('database');
+ databaseType = nconf.get('database'),
+ winston = require('winston');
- if(!databaseType) {
- winston.info('Database type not set! Run npm app --setup');
- process.exit();
- }
+if(!databaseType) {
+ winston.info('Database type not set! Run npm app --setup');
+ process.exit();
+}
var db = require('./database/' + databaseType);