fixed missing winston

v1.18.x
Baris Soner Usakli 11 years ago
parent 9ee250b597
commit 8f769d53a3

@ -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);

Loading…
Cancel
Save