File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -11,20 +11,20 @@ export class AggregateRouter extends ClassesRouter {
11
11
if ( body . distinct ) {
12
12
options . distinct = String ( body . distinct ) ;
13
13
}
14
- if ( body . hint ) {
15
- options . hint = body . hint ;
14
+ if ( Object . prototype . hasOwnProperty . call ( body , ' hint' ) ) {
15
+ if ( body . hint ) options . hint = body . hint ;
16
16
delete body . hint ;
17
17
}
18
- if ( body . explain ) {
19
- options . explain = body . explain ;
18
+ if ( Object . prototype . hasOwnProperty . call ( body , ' explain' ) ) {
19
+ if ( body . explain ) options . explain = body . explain ;
20
20
delete body . explain ;
21
21
}
22
- if ( body . comment ) {
23
- options . comment = body . comment ;
22
+ if ( Object . prototype . hasOwnProperty . call ( body , ' comment' ) ) {
23
+ if ( body . comment ) options . comment = body . comment ;
24
24
delete body . comment ;
25
25
}
26
- if ( body . readPreference ) {
27
- options . readPreference = body . readPreference ;
26
+ if ( Object . prototype . hasOwnProperty . call ( body , ' readPreference' ) ) {
27
+ if ( body . readPreference ) options . readPreference = body . readPreference ;
28
28
delete body . readPreference ;
29
29
}
30
30
options . pipeline = AggregateRouter . getPipeline ( body ) ;
You can’t perform that action at this time.
0 commit comments