Skip to content

Commit

Permalink
Update clone method to include indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
clozanosanchez committed May 18, 2017
1 parent 07b12f0 commit 373bb6f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/schema.js
Expand Up @@ -274,6 +274,7 @@ Schema.prototype.clone = function() {
s.methods = utils.clone(this.methods);
s.statics = utils.clone(this.statics);
s._plugins = utils.clone(this._plugins);
s._indexes = utils.clone(this._indexes);
s.s.hooks = this.s.hooks.clone();
return s;
};
Expand Down

0 comments on commit 373bb6f

Please sign in to comment.