sr-npm 1.7.606 → 1.7.608

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.606",
3
+ "version": "1.7.608",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -17,7 +17,9 @@ async function careersMultiBoxesPageOnReady(_$w) {
17
17
  }
18
18
  if(valueToJobs.size===0) {
19
19
  allvaluesobjects=await getAllRecords(COLLECTIONS.CUSTOM_VALUES);
20
+ console.log("allvaluesobjects: ",allvaluesobjects)
20
21
  for (const value of allvaluesobjects) {
22
+ console.log("value: ",value)
21
23
  valueToJobs[value._id]= value.jobIds;
22
24
  }
23
25
  }
@@ -235,7 +237,7 @@ async function refreshFacetCounts(_$w) {
235
237
  }
236
238
 
237
239
  const fieldIds = Array.from(optionsByFieldId.keys());
238
- for (const valueId of valueToJobs.keys()) {
240
+ for (const valueId of Object.keys(valueToJobs)) {
239
241
  for (const jobId of currentJobs) {
240
242
  if (valueToJobs[valueId].includes(jobId)) {
241
243
  countsByFieldId.set(valueId, (countsByFieldId.get(valueId) || 0) + 1);