mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 22:45:46 +01:00
fixed missing winston
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
|
||||
|
||||
var nconf = require('nconf'),
|
||||
databaseType = nconf.get('database');
|
||||
databaseType = nconf.get('database'),
|
||||
winston = require('winston');
|
||||
|
||||
if(!databaseType) {
|
||||
if(!databaseType) {
|
||||
winston.info('Database type not set! Run npm app --setup');
|
||||
process.exit();
|
||||
}
|
||||
}
|
||||
|
||||
var db = require('./database/' + databaseType);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user