sr-npm 1.7.548 → 1.7.550

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 +9 -10
  2. package/package.json +1 -1
package/backend/data.js CHANGED
@@ -150,7 +150,7 @@ async function saveJobsDataToCMS() {
150
150
  });
151
151
 
152
152
  await insertValuesReference(jobToCustomValues);
153
- await insertJOBSsReference(jobToCustomValues);
153
+ await insertJobsReference(jobToCustomValues);
154
154
 
155
155
 
156
156
  console.log(`✓ All chunks processed. Total jobs saved: ${totalSaved}/${jobsData.length}`);
@@ -419,7 +419,6 @@ async function referenceJobs() {
419
419
  await referenceJobsToField({ referenceField: JOBS_COLLECTION_FIELDS.DEPARTMENT_REF, sourceCollection: COLLECTIONS.AMOUNT_OF_JOBS_PER_DEPARTMENT, jobField: JOBS_COLLECTION_FIELDS.DEPARTMENT });
420
420
  await referenceJobsToField({ referenceField: JOBS_COLLECTION_FIELDS.CITY, sourceCollection: COLLECTIONS.CITIES, jobField: JOBS_COLLECTION_FIELDS.CITY_TEXT });
421
421
  await referenceJobsToField({ referenceField: JOBS_COLLECTION_FIELDS.BRAND_REF, sourceCollection: COLLECTIONS.BRANDS, jobField: JOBS_COLLECTION_FIELDS.BRAND });
422
- await referenceJobsToField({referenceField:JOBS_COLLECTION_FIELDS.CUSTOM_VALUES,sourceCollection:COLLECTIONS.CUSTOM_VALUES,jobField:JOBS_COLLECTION_FIELDS.CUSTOM_VALUES} )
423
422
  console.log("finished referencing jobs");
424
423
  }
425
424
 
@@ -427,16 +426,16 @@ async function syncJobsFast() {
427
426
  console.log("Syncing jobs fast");
428
427
  await createCollections();
429
428
  await clearCollections();
430
- // await fillSecretManagerMirror();
429
+ await fillSecretManagerMirror();
431
430
  console.log("saving jobs data to CMS");
432
431
  await saveJobsDataToCMS();
433
- // console.log("saved jobs data to CMS successfully");
434
- // console.log("saving jobs descriptions and location apply url to CMS");
435
- // await saveJobsDescriptionsAndLocationApplyUrlToCMS();
436
- // console.log("saved jobs descriptions and location apply url to CMS successfully");
437
- // await aggregateJobs();
438
- // await referenceJobs();
439
- // console.log("syncing jobs fast finished successfully");
432
+ console.log("saved jobs data to CMS successfully");
433
+ console.log("saving jobs descriptions and location apply url to CMS");
434
+ await saveJobsDescriptionsAndLocationApplyUrlToCMS();
435
+ console.log("saved jobs descriptions and location apply url to CMS successfully");
436
+ await aggregateJobs();
437
+ await referenceJobs();
438
+ console.log("syncing jobs fast finished successfully");
440
439
  }
441
440
 
442
441
  async function clearCollections() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.548",
3
+ "version": "1.7.550",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {