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

Commit 9386e219 by sdepold

minor refactoring

1 parent 0fa7608a
Showing with 2 additions and 1 deletions
......@@ -49,7 +49,8 @@ module.exports = (function() {
return this.QueryInterface.insert(this, this.__definition.tableName, this.values)
} else {
var identifier = this.__options.hasPrimaryKeys ? this.primaryKeyValues : this.id
, query = this.QueryInterface.update(this, this.__definition.tableName, this.values, identifier)
, tableName = this.__definition.tableName
, query = this.QueryInterface.update(this, tableName, this.values, identifier)
return query
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!