sr-npm 1.2.36 → 1.2.38
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/package.json
CHANGED
|
@@ -112,19 +112,6 @@ function handleFilterInMobile(_$w) {
|
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
const q = wixData.query(collectionId).include(JOBS_COLLECTION_FIELDS.MULTI_REF_JOBS_CUSTOM_VALUES)
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
const items = [];
|
|
119
|
-
let res = await q.limit(1000).find();
|
|
120
|
-
items.push(...res.items);
|
|
121
|
-
|
|
122
|
-
while (res.hasNext()) {
|
|
123
|
-
res = await res.next();
|
|
124
|
-
items.push(...res.items);
|
|
125
|
-
}
|
|
126
|
-
return items;
|
|
127
|
-
|
|
128
115
|
async function handleUrlParams(_$w,urlParams) {
|
|
129
116
|
try {
|
|
130
117
|
let applyFiltering=false;
|
|
@@ -138,8 +125,8 @@ async function handleUrlParams(_$w,urlParams) {
|
|
|
138
125
|
let data = await _$w("#jobsDataset").getItems(0, 1000);
|
|
139
126
|
items.push(...data.items);
|
|
140
127
|
|
|
141
|
-
while (_$w("#jobsDataset").
|
|
142
|
-
_$w("#jobsDataset").
|
|
128
|
+
while (_$w("#jobsDataset").hasNextPage()) {
|
|
129
|
+
await _$w("#jobsDataset").nextPage();
|
|
143
130
|
const nextItems = await _$w("#jobsDataset").getItems(0, 1000);
|
|
144
131
|
items.push(...nextItems.items);
|
|
145
132
|
}
|