@go-mailer/jarvis 10.10.3 → 10.10.4
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 +4 -1
- package/package.json +1 -1
package/lib/query.js
CHANGED
|
@@ -131,7 +131,10 @@ const buildOrQuery = (value) => {
|
|
|
131
131
|
const buildRangeQuery = (value) => {
|
|
132
132
|
const [min, max] = value.split('~')
|
|
133
133
|
const is_not_number = !isNaN(min) || !isNaN(max)
|
|
134
|
-
const query = {
|
|
134
|
+
const query = {
|
|
135
|
+
$gte: 0,
|
|
136
|
+
$lte: Number.MAX_SAFE_INTEGER
|
|
137
|
+
}
|
|
135
138
|
|
|
136
139
|
if (is_not_number) {
|
|
137
140
|
const is_date = !isNaN(Date.parse(min)) || !isNaN(Date.parse(max))
|