sr-npm 1.7.1316 → 1.7.1317

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 -4
  2. package/package.json +1 -1
package/backend/data.js CHANGED
@@ -281,9 +281,9 @@ async function saveJobsDescriptionsAndLocationApplyUrlReferencesToCMS(jobsWithNo
281
281
  //const pageChunks = Math.ceil(jobsWithNoDescriptions.items.length / API_CHUNK_SIZE);
282
282
  const richContentConverterToken = await getTokenFromCMS(TOKEN_NAME.RICH_CONTENT_CONVERTER_TOKEN);
283
283
 
284
- jobsWithNoDescriptions=jobsWithNoDescriptions.map(async job => {
285
- const jobDetails = await fetchJobDescription(job._id);
286
- const richContentDescription=await htmlRichContentConverter(jobDetails.jobAd.sections,richContentConverterToken);
284
+ jobsWithNoDescriptions=await Promise.all(jobsWithNoDescriptions.map( async job => {
285
+ const jobDetails = await fetchJobDescription(job._id);
286
+ const richContentDescription= await htmlRichContentConverter(jobDetails.jobAd.sections,richContentConverterToken);
287
287
  const jobLocation = fetchJobLocation(jobDetails);
288
288
  const {applyLink , referFriendLink} = fetchApplyAndReferFriendLink(jobDetails);
289
289
  const updatedJob = {
@@ -294,7 +294,8 @@ async function saveJobsDescriptionsAndLocationApplyUrlReferencesToCMS(jobsWithNo
294
294
  referFriendLink: referFriendLink,
295
295
  };
296
296
  return updatedJob;
297
- })
297
+ }))
298
+ console.log("jobsWithNoDescriptions: after map ",jobsWithNoDescriptions);
298
299
  return {success: true, updatedJobs: jobsWithNoDescriptions};
299
300
 
300
301
  // await chunkedBulkOperation({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.1316",
3
+ "version": "1.7.1317",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {