sr-npm 3.1.34 → 3.1.35

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/backend/consts.js CHANGED
@@ -65,7 +65,7 @@ const TASKS = {
65
65
  },
66
66
  [TASKS_NAMES.SYNC_JOBS_FAST]: {
67
67
  name: TASKS_NAMES.SYNC_JOBS_FAST,
68
- getIdentifier:()=>"SHOULD_NEVER_SKIP",
68
+ getIdentifier:task=>task.data,
69
69
  process:syncJobsFast,
70
70
  shouldSkipCheck:()=>false,
71
71
  estimatedDurationSec:120
package/backend/data.js CHANGED
@@ -18,7 +18,7 @@ let locationToJobs = {}
18
18
  let siteconfig;
19
19
  let customFieldsLabels = {}
20
20
  let customFieldsValues = {}
21
- const EXCLUDED_CUSTOM_FIELDS = new Set(["COUNTRY"]); //these are IDs, id:COUNTRY label:Country/Region ,
21
+ let EXCLUDED_CUSTOM_FIELDS =new Set(); //new Set(["COUNTRY"]); //these are IDs, id:COUNTRY label:Country/Region ,
22
22
 
23
23
 
24
24
  function getBrand(customField) {
@@ -401,8 +401,10 @@ async function referenceJobs() {
401
401
  console.log("finished referencing jobs");
402
402
  }
403
403
 
404
- async function syncJobsFast() {
404
+ async function syncJobsFast(taskData) {
405
405
  try{
406
+ const { excludedCustomFields } = taskData;
407
+ EXCLUDED_CUSTOM_FIELDS = new Set(excludedCustomFields);
406
408
  console.log("Syncing jobs fast");
407
409
  await createCollections();
408
410
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "3.1.34",
3
+ "version": "3.1.35",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {