sr-npm 1.7.405 → 1.7.407

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,8 +65,8 @@ const TASKS = {
65
65
  },
66
66
  [TASKS_NAMES.SYNC_JOBS_FAST]: {
67
67
  name: TASKS_NAMES.SYNC_JOBS_FAST,
68
- getIdentifier:task=>task.data,
69
- process:task=>syncJobsFast(task),
68
+ getIdentifier:task=>task.data.templateType,
69
+ process:templateType=>syncJobsFast(templateType),
70
70
  shouldSkipCheck:()=>false,
71
71
  estimatedDurationSec:60
72
72
  }
package/backend/data.js CHANGED
@@ -360,11 +360,12 @@ async function referenceJobs() {
360
360
  }
361
361
 
362
362
  async function syncJobsFast(templateType) {
363
- console.log("templateType is : ", templateType);
364
-
365
363
  console.log("Syncing jobs fast");
366
364
  await createCompanyIdCollectionAndFillIt();
365
+ if(templateType==='INTERNAL')
366
+ {
367
367
  await createApiKeyCollectionAndFillIt();
368
+ }
368
369
  await createCollections();
369
370
  await clearCollections();
370
371
  console.log("saving jobs data to CMS");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.405",
3
+ "version": "1.7.407",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {