Skip to content

Commit

Permalink
ci: fix error with sequelize on example app
Browse files Browse the repository at this point in the history
  • Loading branch information
Wojciech Krysiak authored and Wojciech Krysiak committed Sep 9, 2020
1 parent da7110d commit c68e88b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example-app/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ fs
.readdirSync(__dirname)
.filter(file => (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
})

Expand Down

0 comments on commit c68e88b

Please sign in to comment.