sr-npm 1.7.580 → 1.7.581

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.580",
3
+ "version": "1.7.581",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -92,7 +92,7 @@ async function loadJobs(_$w) {
92
92
  const counter={}
93
93
  for (const val of fieldValues) {
94
94
  const result=await wixData.queryReferenced(COLLECTIONS.CUSTOM_VALUES, val, CUSTOM_VALUES_COLLECTION_FIELDS.MULTI_REF_JOBS_CUSTOM_VALUES)
95
- counter[val.title]=result._totalCount
95
+ counter[val.title]=result.totalCount
96
96
  }
97
97
  countsByFieldId.set(fieldId, new Map(originalOptions.map(o => [o.value, counter[o.label]])));
98
98
 
@@ -230,7 +230,7 @@ async function refreshFacetCounts(_$w) {
230
230
  for (const job of jobs) {
231
231
  const referencedfield= await wixData.queryReferenced(COLLECTIONS.JOBS, job, JOBS_COLLECTION_FIELDS.MULTI_REF_JOBS_CUSTOM_VALUES)
232
232
  console.log("referencedfield: ",referencedfield)
233
- const vals = referencedfield._items
233
+ const vals = referencedfield.items
234
234
  //const vals = job[JOB_VALUES_FIELD] || [];
235
235
  for (const val of vals) {
236
236
  if (optionSet.has(val._id)) {