We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 201bd27 commit b83697eCopy full SHA for b83697e
lib/models/index.ts
@@ -43,7 +43,7 @@ const db: any = {}
43
44
fs.readdirSync(__dirname)
45
.filter(function (file) {
46
- return (file.indexOf('.') !== 0) && (file !== 'index.js')
+ return (file.indexOf('.') !== 0) && (file !== 'index.js') && file.endsWith('.js')
47
})
48
.forEach(function (file) {
49
const model = sequelize.import(path.join(__dirname, file))
0 commit comments