sr-npm 1.7.738 → 1.7.739
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
|
@@ -391,6 +391,7 @@ async function refreshFacetCounts(_$w,clearAll=false,secondarySearch=false) {
|
|
|
391
391
|
|
|
392
392
|
|
|
393
393
|
function countJobsPerField(jobs) {
|
|
394
|
+
console.log("counting jobs per field for jobs: ", jobs);
|
|
394
395
|
const fieldIds = Array.from(optionsByFieldId.keys());
|
|
395
396
|
const currentJobsIds=jobs.map(job=>job._id);
|
|
396
397
|
for (const fieldId of fieldIds) {
|
|
@@ -405,6 +406,7 @@ async function refreshFacetCounts(_$w,clearAll=false,secondarySearch=false) {
|
|
|
405
406
|
}
|
|
406
407
|
countsByFieldId.set(fieldId, counter);
|
|
407
408
|
}
|
|
409
|
+
console.log("countsByFieldId inside countJobsPerField: ", countsByFieldId);
|
|
408
410
|
}
|
|
409
411
|
|
|
410
412
|
|