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

Commit bb955d3c by Sascha Depold

Merge branch 'master' of github.com:sequelize/sequelize

2 parents 32fa3034 67348fc4
Showing with 1 additions and 1 deletions
...@@ -158,7 +158,7 @@ module.exports = (function() { ...@@ -158,7 +158,7 @@ module.exports = (function() {
else if (this.isNewRecord) { else if (this.isNewRecord) {
return this.QueryInterface.insert(this, this.QueryInterface.QueryGenerator.addSchema(this.__factory), values) return this.QueryInterface.insert(this, this.QueryInterface.QueryGenerator.addSchema(this.__factory), values)
} else { } else {
var identifier = this.__options.hasPrimaryKeys ? this.primaryKeyValues : this.id; var identifier = this.__options.hasPrimaryKeys ? this.primaryKeyValues : { id: this.id };
if (identifier === null && this.__options.whereCollection !== null) { if (identifier === null && this.__options.whereCollection !== null) {
identifier = this.__options.whereCollection; identifier = this.__options.whereCollection;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!