sr-npm 1.7.640 → 1.7.641

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,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.640",
3
+ "version": "1.7.641",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -15,10 +15,11 @@ async function careersMultiBoxesPageOnReady(_$w) {
15
15
  if(alljobs.length===0) {
16
16
  alljobs=await getAllRecords(COLLECTIONS.JOBS);
17
17
  currentJobs=alljobs.map(job=>job._id);
18
+ console.log("alljobs: ",alljobs)
18
19
  }
19
20
  if(Object.keys(valueToJobs).length === 0){
20
21
  allvaluesobjects=await getAllRecords(COLLECTIONS.CUSTOM_VALUES);
21
-
22
+
22
23
  for (const value of allvaluesobjects) {
23
24
  valueToJobs[value._id]= value.jobIds;
24
25
  }
@@ -160,7 +161,7 @@ async function loadJobs(_$w) {
160
161
 
161
162
 
162
163
  async function getAllRecords(collectionId) {
163
- let q = wixData.query(collectionId);
164
+ let q = wixData.query(collectionId).include(JOBS_COLLECTION_FIELDS.MULTI_REF_JOBS_CUSTOM_VALUES)
164
165
 
165
166
 
166
167
  const items = [];