We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e45194e + 08592f8 commit 5b564c6Copy full SHA for 5b564c6
lib/models/index.js
@@ -45,7 +45,7 @@ fs.readdirSync(__dirname)
45
return (file.indexOf('.') !== 0) && (file !== 'index.js')
46
})
47
.forEach(function (file) {
48
- var model = sequelize.import(path.join(__dirname, file))
+ var model = require(path.join(__dirname, file))(sequelize, Sequelize)
49
db[model.name] = model
50
51
0 commit comments