sr-npm 1.7.1221 → 1.7.1223

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 CHANGED
@@ -287,7 +287,7 @@ async function saveJobsDescriptionsAndLocationApplyUrlReferencesToCMS() {
287
287
  const chunkPromises = chunk.map(async job => {
288
288
  try {
289
289
  const jobDetails = await fetchJobDescription(job._id);
290
- const richContentDescription=await htmlRichContentConverter(jobDetails.jobAd.sections,richContentConverterToken,job.name);
290
+ const richContentDescription=await htmlRichContentConverter(jobDetails.jobAd.sections,richContentConverterToken,job.title);
291
291
  const jobLocation = fetchJobLocation(jobDetails);
292
292
  const {applyLink , referFriendLink} = fetchApplyAndReferFriendLink(jobDetails);
293
293
  const updatedJob = {
@@ -121,9 +121,9 @@ async function htmlRichContentConverter(sections,richContentConverterToken,title
121
121
  const richContentObject = {}
122
122
  for (const [sectionTitle, sectionData] of Object.entries(sections)) {
123
123
  if (sectionData.text) {
124
- const raw = {
124
+ const raw = JSON.stringify({
125
125
  content: sectionData.text,
126
- };
126
+ });
127
127
  const requestOptions = {
128
128
  method: 'post',
129
129
  headers: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.1221",
3
+ "version": "1.7.1223",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {