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

Commit 186842ee by Mick Hansen

fix(model): clone options on create, closes #4011

1 parent af92fa40
Showing with 1 additions and 1 deletions
...@@ -1573,7 +1573,7 @@ Model.prototype.bulkBuild = function(valueSets, options) { // testhint options:n ...@@ -1573,7 +1573,7 @@ Model.prototype.bulkBuild = function(valueSets, options) { // testhint options:n
* @return {Promise<Instance>} * @return {Promise<Instance>}
*/ */
Model.prototype.create = function(values, options) { Model.prototype.create = function(values, options) {
options = options || {}; options = optClone(options || {});
return this.build(values, { return this.build(values, {
isNewRecord: true, isNewRecord: true,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!