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.
- package/backend/data.js +15 -6
- 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
|
-
|
|
215
|
-
|
|
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
|
-
|
|
546
|
+
syncJobsFastSplitted,
|
|
547
|
+
syncJobsDescriptionsAndLocationApplyUrlFastSplitted,
|
|
539
548
|
aggregateJobsByFieldToCMS,
|
|
540
549
|
referenceJobsToField,
|
|
541
550
|
fillSecretManagerMirror,
|