Skip to content

Commit 373bb6f

Browse files
Update clone method to include indexes
1 parent 07b12f0 commit 373bb6f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/schema.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ Schema.prototype.clone = function() {
274274
s.methods = utils.clone(this.methods);
275275
s.statics = utils.clone(this.statics);
276276
s._plugins = utils.clone(this._plugins);
277+
s._indexes = utils.clone(this._indexes);
277278
s.s.hooks = this.s.hooks.clone();
278279
return s;
279280
};

0 commit comments

Comments
 (0)