Skip to content

Commit

Permalink
version 3.2.1 - define param DataTypes to Sequelize
Browse files Browse the repository at this point in the history
  • Loading branch information
helloyou2012 committed Dec 4, 2020
1 parent 463ee83 commit be16505
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/models.js
Expand Up @@ -16,7 +16,7 @@ module.exports = (sequelize, modelPath) => {
// ES6 module compatibility
defineCall = defineCall.default;
}
const model = defineCall(sequelize, Sequelize.DataTypes);
const model = defineCall(sequelize, Sequelize);
models[model.name] = model;
}
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "koa-orm",
"version": "3.2.0",
"version": "3.2.1",
"description": "koa orm using sequelize & sk2",
"main": "index.js",
"types": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion test/config.js
Expand Up @@ -16,5 +16,5 @@ module.exports = {
min: 0,
idle: 30000
},
logging: false
logging: console.log
};

0 comments on commit be16505

Please sign in to comment.