不要怂,就是干,撸起袖子干!

Commit 3347c77d by Mick Hansen

Fix typo bug in normalizeDataType, closes #3170

1 parent e287c075
Showing with 1 additions and 1 deletions
...@@ -1173,7 +1173,7 @@ module.exports = (function() { ...@@ -1173,7 +1173,7 @@ module.exports = (function() {
}; };
Sequelize.prototype.normalizeDataType = function(Type) { Sequelize.prototype.normalizeDataType = function(Type) {
var type = typeof Type === "function" ? type = new Type() : Type var type = typeof Type === "function" ? new Type() : Type
, dialectTypes = this.dialect.DataTypes || {}; , dialectTypes = this.dialect.DataTypes || {};
if (dialectTypes[type.key]) { if (dialectTypes[type.key]) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!