sr-npm 1.7.381 → 1.7.382
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 +13 -15
- package/package.json +1 -1
package/backend/data.js
CHANGED
|
@@ -339,21 +339,19 @@ async function referenceJobs() {
|
|
|
339
339
|
}
|
|
340
340
|
|
|
341
341
|
async function syncJobsFast() {
|
|
342
|
-
console.log("
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
// await referenceJobs();
|
|
356
|
-
// console.log("syncing jobs fast finished successfully");
|
|
342
|
+
console.log("Syncing jobs fast");
|
|
343
|
+
await createCompanyIdCollectionAndFillIt();
|
|
344
|
+
await createCollections();
|
|
345
|
+
await clearCollections();
|
|
346
|
+
console.log("saving jobs data to CMS");
|
|
347
|
+
await saveJobsDataToCMS();
|
|
348
|
+
console.log("saved jobs data to CMS successfully");
|
|
349
|
+
console.log("saving jobs descriptions and location apply url to CMS");
|
|
350
|
+
await saveJobsDescriptionsAndLocationApplyUrlToCMS();
|
|
351
|
+
console.log("saved jobs descriptions and location apply url to CMS successfully");
|
|
352
|
+
await aggregateJobs();
|
|
353
|
+
await referenceJobs();
|
|
354
|
+
console.log("syncing jobs fast finished successfully");
|
|
357
355
|
}
|
|
358
356
|
|
|
359
357
|
async function clearCollections() {
|