File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -66,12 +66,12 @@ function validate_options(params) {
6666}
6767
6868exports = module . exports . parseAll = function ( _query , _default , _options ) {
69- const options = validate_options ( { 'default' : _default , ... _options } )
69+ const params = validate_options ( Object . assign ( { 'default' : _default } || { } , _options || { } ) )
7070 return {
71- fields : fields . fields ( stringToJson ( _query ) , options ) ,
72- sort : ordination . sort ( stringToJson ( _query ) , options ) ,
73- filters : filters . filters ( stringToJson ( _query ) , options ) ,
74- pagination : pagination . pagination ( stringToJson ( _query ) , options ) ,
71+ fields : fields . fields ( stringToJson ( _query ) , params ) ,
72+ sort : ordination . sort ( stringToJson ( _query ) , params ) ,
73+ filters : filters . filters ( stringToJson ( _query ) , params ) ,
74+ pagination : pagination . pagination ( stringToJson ( _query ) , params ) ,
7575 original : _query
7676 }
7777}
You can’t perform that action at this time.
0 commit comments