sr-npm 1.7.595 → 1.7.597

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.
@@ -39,6 +39,7 @@ const CUSTOM_VALUES_COLLECTION_FIELDS = {
39
39
  CUSTOM_FIELD: 'customField',
40
40
  MULTI_REF_JOBS_CUSTOM_VALUES: 'multiRefJobsCustomValues',
41
41
  TOTAL_JOBS: 'totalJobs',
42
+ JOB_IDS: 'jobIds',
42
43
  }
43
44
  const CUSTOM_FIELDS_COLLECTION_FIELDS = {
44
45
  TITLE: 'title',
@@ -106,6 +107,7 @@ const COLLECTIONS_FIELDS = {
106
107
  {key:'customField', type: 'REFERENCE', typeMetadata: { reference: { referencedCollectionId: COLLECTIONS.CUSTOM_FIELDS } } },
107
108
  {key:'totalJobs', type: 'NUMBER'},
108
109
  {key:'multiRefJobsCustomValues', type: 'MULTI_REFERENCE', typeMetadata: { multiReference: { referencedCollectionId: COLLECTIONS.JOBS,referencingFieldKey:CUSTOM_VALUES_COLLECTION_FIELDS.MULTI_REF_JOBS_CUSTOM_VALUES,referencingDisplayName:CUSTOM_VALUES_COLLECTION_FIELDS.MULTI_REF_JOBS_CUSTOM_VALUES } } },
110
+ {key:'jobIds', type: 'ARRAY'},
109
111
  ],
110
112
  CUSTOM_FIELDS: [
111
113
  {key:'title', type: 'TEXT'},
package/backend/data.js CHANGED
@@ -196,6 +196,7 @@ async function populateCustomValuesCollection(customFieldsValues) {
196
196
  title: valuesMap[valueId],
197
197
  customField: fieldId,
198
198
  totalJobs:customValuesToJobs[valueId].length,
199
+ jobIds:customValuesToJobs[valueId],
199
200
  })
200
201
  }
201
202
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.595",
3
+ "version": "1.7.597",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -43,9 +43,9 @@ async function careersMultiBoxesPageOnReady(_$w) {
43
43
  });
44
44
  });
45
45
  updateSelectedValuesRepeater(_$w);
46
- if(alljobs.length===0) {
47
- alljobs=await getAllRecords(COLLECTIONS.JOBS);
48
- }
46
+ // if(alljobs.length===0) {
47
+ // alljobs=await getAllRecords(COLLECTIONS.JOBS);
48
+ // }
49
49
  if(valueToJobs.size===0) {
50
50
  const allvaluesobjects=await getAllRecords(COLLECTIONS.CUSTOM_VALUES);
51
51
  for (const value of allvaluesobjects) {
@@ -53,7 +53,7 @@ async function careersMultiBoxesPageOnReady(_$w) {
53
53
  }
54
54
  }
55
55
  console.log("valueToJobs: ",valueToJobs)
56
- console.log("alljobs: ",alljobs)
56
+ //console.log("alljobs: ",alljobs)
57
57
 
58
58
  }
59
59