@go-mailer/jarvis 3.2.9 → 3.2.11
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 +3 -4
- package/package.json +1 -1
package/lib/query.js
CHANGED
|
@@ -36,12 +36,11 @@ const buildQuery = (options) => {
|
|
|
36
36
|
let pipeline = []
|
|
37
37
|
if (group_by) {
|
|
38
38
|
pipeline = generateGroupPipeline({
|
|
39
|
+
count,
|
|
39
40
|
group_by,
|
|
40
41
|
seek_conditions,
|
|
41
42
|
fields_to_return,
|
|
42
|
-
sort_condition
|
|
43
|
-
skip,
|
|
44
|
-
limit
|
|
43
|
+
sort_condition
|
|
45
44
|
})
|
|
46
45
|
}
|
|
47
46
|
|
|
@@ -125,7 +124,7 @@ const buildWildcardOptions = (key_list, value) => {
|
|
|
125
124
|
|
|
126
125
|
const determinePagination = (page = 0, population) => {
|
|
127
126
|
const pagination = {
|
|
128
|
-
skip: population ?
|
|
127
|
+
skip: population ? page * population : page
|
|
129
128
|
}
|
|
130
129
|
|
|
131
130
|
if (population) {
|