Skip to content

Commit

Permalink
Merge pull request #5268 from clozanosanchez/patch-2
Browse files Browse the repository at this point in the history
Update clone method to include indexes
  • Loading branch information
vkarpov15 committed May 18, 2017
2 parents 07b12f0 + 373bb6f commit 8ba7869
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 8ba7869

Please sign in to comment.