Fixed an error
This commit is contained in:
parent
069b2d1b4d
commit
0775d77ba0
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ fs
|
|||
return (file.indexOf('.') !== 0) && (file !== basename) && (file.slice(-3) === '.js');
|
||||
})
|
||||
.forEach(file => {
|
||||
const model = sequelize['import'](path.join(__dirname, file));
|
||||
const model = require(path.join(__dirname, file))(sequelize, Sequelize.DataTypes)
|
||||
db[model.name] = model;
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue