Refactoring
This commit is contained in:
parent
5a3cd80973
commit
caeba1197c
16 changed files with 84 additions and 206 deletions
|
|
@ -87,7 +87,7 @@ async function init(): Promise<Config> {
|
|||
MachineInfo.show();
|
||||
new DependencyInfo().showAll();
|
||||
|
||||
let configLogger = new Logger('Config');
|
||||
const configLogger = new Logger('Config');
|
||||
if (!fs.existsSync(configPath)) {
|
||||
throw 'Configuration not found - Please run "npm run config" command.';
|
||||
}
|
||||
|
|
@ -109,7 +109,7 @@ async function init(): Promise<Config> {
|
|||
*/
|
||||
|
||||
// Try to connect to MongoDB
|
||||
let mongoDBLogger = new Logger('MongoDB');
|
||||
const mongoDBLogger = new Logger('MongoDB');
|
||||
const db = require('./db/mongodb').default;
|
||||
mongoDBLogger.info('Successfully connected');
|
||||
db.close();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue