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) {
66
66
}
67
67
68
68
exports = 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 || { } ) )
70
70
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 ) ,
75
75
original : _query
76
76
}
77
77
}
You can’t perform that action at this time.
0 commit comments