sr-npm 1.7.637 → 1.7.638
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
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
const { COLLECTIONS,CUSTOM_VALUES_COLLECTION_FIELDS,JOBS_COLLECTION_FIELDS } = require('../backend/collectionConsts');
|
|
2
2
|
const { items: wixData } = require('@wix/data');
|
|
3
3
|
const {CAREERS_MULTI_BOXES_PAGE_CONSTS} = require('../backend/careersMultiBoxesPageIds');
|
|
4
|
-
|
|
4
|
+
const { auth } = require('@wix/essentials');
|
|
5
|
+
const getAllRecordsElevated = auth.elevate(wixData.query);
|
|
5
6
|
let valuesByFieldIdGlobal = null;
|
|
6
7
|
let dontUpdateThisCheckBox;
|
|
7
8
|
const selectedByField = new Map(); // fieldId -> array of selected value IDs
|
|
@@ -155,14 +156,15 @@ async function loadJobs(_$w) {
|
|
|
155
156
|
console.error('Failed to load filters:', err);
|
|
156
157
|
}
|
|
157
158
|
}
|
|
158
|
-
|
|
159
|
+
|
|
159
160
|
|
|
160
161
|
async function getAllRecords(collectionId) {
|
|
161
|
-
let q = wixData.query(collectionId);
|
|
162
|
+
//let q = wixData.query(collectionId);
|
|
163
|
+
let q=getAllRecordsElevated(collectionId)
|
|
162
164
|
|
|
163
165
|
|
|
164
166
|
const items = [];
|
|
165
|
-
let res = await q.limit(1000).find()
|
|
167
|
+
let res = await q.limit(1000).find()
|
|
166
168
|
items.push(...res.items);
|
|
167
169
|
|
|
168
170
|
while (res.hasNext()) {
|