@go-mailer/jarvis 3.1.2 → 3.1.3
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 +1 -1
- package/package.json +1 -1
package/lib/query.js
CHANGED
|
@@ -2,7 +2,7 @@ const buildQuery = (options) => {
|
|
|
2
2
|
const sort_condition = options.sort_by ? buildSortOrderString(options.sort_by) : ''
|
|
3
3
|
const fields_to_return = options.return_only ? buildReturnFieldsString(options.return_only) : ''
|
|
4
4
|
const count = options.count || false
|
|
5
|
-
const seek_conditions = { ...buildBooleanQuery(options.bool || '')}
|
|
5
|
+
const seek_conditions = options.bool ? { ...buildBooleanQuery(options.bool || '')} : {}
|
|
6
6
|
|
|
7
7
|
const { skip, limit } = determinePagination(options.page, options.population)
|
|
8
8
|
|