Skip to content

Commit b36dfd8

Browse files
committed
fix: dont re-call setOptions() when pulling base class options
Re: Automattic/mongoose#8159
1 parent d8d94f8 commit b36dfd8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/mquery.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ function Query(criteria, options) {
3434

3535
this.op = proto.op || undefined;
3636

37-
this.options = {};
38-
this.setOptions(proto.options);
37+
this.options = Object.assign({}, proto.options);
3938

4039
this._conditions = proto._conditions
4140
? utils.clone(proto._conditions)

0 commit comments

Comments
 (0)