sr-npm 1.7.845 → 1.7.846

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 +4 -2
  2. package/package.json +1 -1
package/backend/data.js CHANGED
@@ -143,7 +143,8 @@ async function saveJobsDataToCMS() {
143
143
  getCustomFieldsAndValuesFromPosition(position,customFieldsLabels,customFieldsValues);
144
144
  getEmploymentType(position,customFieldsValues);
145
145
  getLocation(position,basicJob);
146
- if(templateType===TEMPLATE_TYPE.INTERNAL){
146
+ if(templateType===TEMPLATE_TYPE.EXTERNAL){
147
+ console.log("change me lkater to internsal")
147
148
  getVisibility(position,customFieldsValues);
148
149
  }
149
150
 
@@ -198,8 +199,9 @@ async function insertJobsReference(valueId) {
198
199
  }
199
200
 
200
201
  async function populateCustomFieldsCollection(customFields) {
201
- fieldstoinsert=[]
202
+ let fieldstoinsert=[]
202
203
  customFields["employmentType"] = "Employment Type";
204
+ customFields["visibility"] = "Visibility";
203
205
  for(const ID of Object.keys(customFields)){
204
206
  fieldstoinsert.push({
205
207
  title: customFields[ID],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.845",
3
+ "version": "1.7.846",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {