sr-npm 1.7.562 → 1.7.563

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 +15 -6
  2. package/package.json +1 -1
package/backend/data.js CHANGED
@@ -211,9 +211,15 @@ async function saveJobsDescriptionsAndLocationApplyUrlReferencesToCMS() {
211
211
  try {
212
212
  let jobsWithNoDescriptions = await getJobsWithNoDescriptions();
213
213
  let customValues=await getAllCustomValues();
214
- for (const valueId of customValues.items) {
215
- await insertJobsReference(valueId);
214
+ console.log("customValues: ", customValues);
215
+ console.log("jobToCustomValues: ", jobToCustomValues);
216
+ console.log("customValuesToJobs: ", customValuesToJobs);
217
+
218
+ console.log("inserting jobs references");
219
+ for (const value of customValues.items) {
220
+ await insertJobsReference(value._id);
216
221
  }
222
+ console.log("inserted jobs references successfully");
217
223
 
218
224
 
219
225
  let totalUpdated = 0;
@@ -470,13 +476,15 @@ async function syncJobsFastSplitted() {
470
476
  console.log("saving jobs data to CMS");
471
477
  await saveJobsDataToCMS();
472
478
  console.log("saved jobs data to CMS successfully");
473
- console.log("saving jobs descriptions and location apply url to CMS");
474
- await saveJobsDescriptionsAndLocationApplyUrlReferencesToCMS();
475
- console.log("saved jobs descriptions and location apply url to CMS successfully");
476
479
  await aggregateJobs();
477
480
  await referenceJobs();
478
481
  console.log("syncing jobs fast finished successfully");
479
482
  }
483
+ async function syncJobsDescriptionsAndLocationApplyUrlFastSplitted() {
484
+ console.log("Syncing jobs descriptions and location apply url and values references");
485
+ await saveJobsDescriptionsAndLocationApplyUrlReferencesToCMS();
486
+ console.log("saved jobs descriptions and location apply url and values references successfully");
487
+ }
480
488
 
481
489
  async function clearCollections() {
482
490
  console.log("clearing collections");
@@ -535,7 +543,8 @@ module.exports = {
535
543
  aggregateJobs,
536
544
  createCollections,
537
545
  saveJobsDataToCMS,
538
- saveJobsDescriptionsAndLocationApplyUrlToCMS: saveJobsDescriptionsAndLocationApplyUrlReferencesToCMS,
546
+ syncJobsFastSplitted,
547
+ syncJobsDescriptionsAndLocationApplyUrlFastSplitted,
539
548
  aggregateJobsByFieldToCMS,
540
549
  referenceJobsToField,
541
550
  fillSecretManagerMirror,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.562",
3
+ "version": "1.7.563",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {