sr-npm 1.7.569 → 1.7.570

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 +7 -0
  2. package/package.json +1 -1
package/backend/data.js CHANGED
@@ -80,6 +80,12 @@ function getCustomFieldsAndValuesFromPosition(position,customFieldsLabels,custom
80
80
  jobToCustomValues[position.id] ? jobToCustomValues[position.id].push(valueId) : jobToCustomValues[position.id]=[valueId]
81
81
  customValuesToJobs[valueId] ? customValuesToJobs[valueId].push(position.id) : customValuesToJobs[valueId]=[position.id]
82
82
  }
83
+
84
+ if (!customFieldsValues["employmentType"]) {
85
+ customFieldsValues["employmentType"] = {};
86
+ }
87
+ customFieldsValues["employmentType"][position.typeOfEmployment.id] = position.typeOfEmployment.label;
88
+
83
89
 
84
90
  }
85
91
  async function saveJobsDataToCMS() {
@@ -171,6 +177,7 @@ async function insertJobsReference(valueId) {
171
177
 
172
178
  async function populateCustomFieldsCollection(customFields) {
173
179
  fieldstoinsert=[]
180
+ customFields["employmentType"] = "Employment Type";
174
181
  for(const ID of Object.keys(customFields)){
175
182
  fieldstoinsert.push({
176
183
  title: customFields[ID],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.569",
3
+ "version": "1.7.570",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {