sr-npm 1.7.1322 → 1.7.1323

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 +4 -7
  2. package/package.json +1 -1
package/backend/data.js CHANGED
@@ -218,7 +218,6 @@ async function populateCustomValuesCollection(customFieldsValues) {
218
218
 
219
219
  async function retrieveJobsDescriptionsAndLocationApplyUrlReferences(jobsWithNoDescriptions) {
220
220
  console.log('🚀 Starting job descriptions update process for ALL jobs');
221
- console.log("jobsWithNoDescriptions: ",jobsWithNoDescriptions);
222
221
 
223
222
  try {
224
223
 
@@ -238,7 +237,6 @@ async function retrieveJobsDescriptionsAndLocationApplyUrlReferences(jobsWithNoD
238
237
  };
239
238
  return updatedJob;
240
239
  }))
241
- console.log("jobsWithDescriptions: after map ",jobsWithDescriptions);
242
240
  return {success: true, updatedJobs: jobsWithDescriptions};
243
241
 
244
242
  } catch (error) {
@@ -414,21 +412,20 @@ async function syncJobsFast() {
414
412
  await fillSecretManagerMirror();
415
413
 
416
414
  console.log("retrieving jobs data from SR API");
415
+
417
416
  const jobsData = await retrieveJobsData();
418
- console.log("jobsData inside syncJobsFast: ",jobsData);
417
+
419
418
  console.log("retrieved jobs data from SR API successfully");
420
419
 
421
420
  console.log("retrieving jobs descriptions and location apply url from SR API");
422
421
 
423
422
  const status=await retrieveJobsDescriptionsAndLocationApplyUrlReferences(jobsData);
424
- throw new Error("test");
425
- console.log("status inside syncJobsFast: ",status);
423
+ throw new Error("test");
426
424
  if(status.success){
427
425
  await wixData.truncate(COLLECTIONS.JOBS)
428
426
  const updatedJobs=status.updatedJobs;
429
- console.log("updatedJobs inside syncJobsFast: ",updatedJobs);
427
+ console.log("saving jobs to CMS");
430
428
  await saveJobsToCMS(updatedJobs);
431
- console.log("saved jobs to CMS successfully");
432
429
 
433
430
  if (siteconfig.customFields==="true") {
434
431
  await insertJobsReferencesToCustomValuesCollection();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.1322",
3
+ "version": "1.7.1323",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {