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

Commit 1eff0488 by smihica

Fixed miss.

1 parent 15fbe60d
Showing with 2 additions and 2 deletions
...@@ -482,7 +482,7 @@ Instance.prototype.save = function(options) { ...@@ -482,7 +482,7 @@ Instance.prototype.save = function(options) {
if (arguments.length > 1) { if (arguments.length > 1) {
throw new Error('The second argument was removed in favor of the options object.'); throw new Error('The second argument was removed in favor of the options object.');
} }
options = _.defaults(options || {}, { options = _.defaults({}, options, {
hooks: true, hooks: true,
validate: true validate: true
}); });
...@@ -724,7 +724,7 @@ Instance.prototype.save = function(options) { ...@@ -724,7 +724,7 @@ Instance.prototype.save = function(options) {
* @return {Promise<this>} * @return {Promise<this>}
*/ */
Instance.prototype.reload = function(options) { Instance.prototype.reload = function(options) {
options = _.defaults({}, options || {}, { options = _.defaults({}, options, {
where: this.where(), where: this.where(),
limit: 1, limit: 1,
include: this.options.include || null include: this.options.include || null
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!