sr-npm 3.1.32 → 3.1.34

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.
Files changed (2) hide show
  1. package/backend/data.js +3 -2
  2. package/package.json +1 -1
package/backend/data.js CHANGED
@@ -18,7 +18,8 @@ let locationToJobs = {}
18
18
  let siteconfig;
19
19
  let customFieldsLabels = {}
20
20
  let customFieldsValues = {}
21
- const EXCLUDED_CUSTOM_FIELDS = new Set(["Department","Country"]);
21
+ const EXCLUDED_CUSTOM_FIELDS = new Set(["COUNTRY"]); //these are IDs, id:COUNTRY label:Country/Region ,
22
+
22
23
 
23
24
  function getBrand(customField) {
24
25
  return customField.find(field => field.fieldLabel === 'Brands')?.valueLabel;
@@ -98,7 +99,7 @@ function getCustomFieldsAndValuesFromPosition(position, customFieldsLabels, cust
98
99
  const customFieldsArray = Array.isArray(position?.customField) ? position.customField : [];
99
100
 
100
101
  for (const field of customFieldsArray) {
101
- if(EXCLUDED_CUSTOM_FIELDS.has(field.fieldLabel)) continue; //country and department are not custom fields, they are already in the job object
102
+ if(EXCLUDED_CUSTOM_FIELDS.has(field.fieldId)) continue; //country and department are not custom fields, they are already in the job object
102
103
 
103
104
  const fieldId = normalizeString(field.fieldId)
104
105
  const fieldLabel = field.fieldLabel;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "3.1.32",
3
+ "version": "3.1.34",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {