sr-npm 1.7.1321 → 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 +5 -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,20 +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
- const status=await retrieveJobsDescriptionsAndLocationApplyUrlReferences(jobsData);
423
421
 
424
- console.log("status inside syncJobsFast: ",status);
422
+ const status=await retrieveJobsDescriptionsAndLocationApplyUrlReferences(jobsData);
423
+ throw new Error("test");
425
424
  if(status.success){
426
425
  await wixData.truncate(COLLECTIONS.JOBS)
427
426
  const updatedJobs=status.updatedJobs;
428
- console.log("updatedJobs inside syncJobsFast: ",updatedJobs);
427
+ console.log("saving jobs to CMS");
429
428
  await saveJobsToCMS(updatedJobs);
430
- console.log("saved jobs to CMS successfully");
431
429
 
432
430
  if (siteconfig.customFields==="true") {
433
431
  await insertJobsReferencesToCustomValuesCollection();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.1321",
3
+ "version": "1.7.1323",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {