Commit 259389d3 by 宋毅

tj

parent 834bba20
......@@ -6,7 +6,6 @@ var glob = require("glob");
class DbFactory{
constructor(){
const dbConfig=settings.database();
const dbConfighb=settings.databasehb();
this.db=new Sequelize(dbConfig.dbname,
dbConfig.user,
dbConfig.password,
......@@ -19,8 +18,6 @@ class DbFactory{
async initModels(){
var self=this;
var modelpath=path.normalize(path.join(__dirname, '../..'))+"/models/";
console.log("modelpath=====================================================");
console.log(modelpath);
var models=glob.sync(modelpath+"/**/*.js");
console.log(models.length);
models.forEach(function(m){
......@@ -77,12 +74,6 @@ class DbFactory{
}
return this.db;
}
getConhb(){
var that=this;
if(settings.env=="dev"){
}
return this.dbhb;
}
}
module.exports=DbFactory;
// const dbf=new DbFactory();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment