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 {
1111 if ( body . distinct ) {
1212 options . distinct = String ( body . distinct ) ;
1313 }
14- if ( Object . prototype . hasOwnProperty . call ( body , ' hint' ) ) {
15- if ( body . hint ) options . hint = body . hint ;
14+ if ( body . hint ) {
15+ options . hint = body . hint ;
1616 delete body . hint ;
1717 }
18- if ( Object . prototype . hasOwnProperty . call ( body , ' explain' ) ) {
19- if ( body . explain ) options . explain = body . explain ;
18+ if ( body . explain ) {
19+ options . explain = body . explain ;
2020 delete body . explain ;
2121 }
22- if ( Object . prototype . hasOwnProperty . call ( body , ' comment' ) ) {
23- if ( body . comment ) options . comment = body . comment ;
22+ if ( body . comment ) {
23+ options . comment = body . comment ;
2424 delete body . comment ;
2525 }
26- if ( Object . prototype . hasOwnProperty . call ( body , ' readPreference' ) ) {
27- if ( body . readPreference ) options . readPreference = body . readPreference ;
26+ if ( body . readPreference ) {
27+ options . readPreference = body . readPreference ;
2828 delete body . readPreference ;
2929 }
3030 options . pipeline = AggregateRouter . getPipeline ( body ) ;
You can’t perform that action at this time.
0 commit comments