Рефакторинг

This commit is contained in:
Book Pauk
2019-10-29 19:05:21 +07:00
parent a318568b72
commit 97ef1ee201
3 changed files with 4 additions and 7 deletions

View File

@@ -1,7 +1,6 @@
const fs = require('fs-extra');
const SqliteConnectionPool = require('./SqliteConnectionPool');
const configManager = new (require('../config'))();//singleton
const log = new (require('../core/AppLogger'))().log;//singleton
const migrations = {
@@ -24,7 +23,7 @@ class ConnManager {
}
async init(config) {
this.config = configManager.config;
this.config = config;
this._pool = {};
const force = null;//(config.branch == 'development' ? 'last' : null);