@ewb/mongoose-query 1.1.13 → 1.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Query.js +0 -2
- package/lib/utils/Query.utils.js +1 -1
- package/package.json +1 -1
package/lib/Query.js
CHANGED
package/lib/utils/Query.utils.js
CHANGED
|
@@ -138,7 +138,7 @@ export function greaterLessThanValue(query, operation, field, queryValue) {
|
|
|
138
138
|
const SORT_SPLIT = /,|\s/;
|
|
139
139
|
export function toMongooseOperation(query, operation, field, queryValue) {
|
|
140
140
|
const value = {
|
|
141
|
-
[operation]: queryValue.split(SORT_SPLIT),
|
|
141
|
+
[operation]: queryValue.split(SORT_SPLIT).filter(Boolean),
|
|
142
142
|
};
|
|
143
143
|
return { field, value };
|
|
144
144
|
}
|
package/package.json
CHANGED