sr-npm 1.7.46 → 1.7.48

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 +3 -2
  2. package/package.json +1 -1
package/backend/data.js CHANGED
@@ -60,16 +60,17 @@ async function saveJobsDescriptionsAndLocationToCMS() {
60
60
 
61
61
  try {
62
62
  let jobsWithNoDescriptions = await getJobsWithNoDescriptions();
63
+ console.log('jobsWithNoDescriptions is ', jobsWithNoDescriptions);
63
64
  let totalUpdated = 0;
64
65
  let totalFailed = 0;
65
66
  let totalProcessed = 0;
66
67
  let pageNumber = 1;
67
68
 
68
69
  console.log(
69
- `Total jobs in database without descriptions: ${jobsWithNoDescriptions.items.length}`
70
+ `Total jobs in database without descriptions: ${jobsWithNoDescriptions?.items?.length}`
70
71
  );
71
72
 
72
- if (jobsWithNoDescriptions.result.length === 0) {
73
+ if (jobsWithNoDescriptions.items.length === 0) {
73
74
  console.log('No jobs found in database');
74
75
  return { success: true, message: 'No jobs found' };
75
76
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.46",
3
+ "version": "1.7.48",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {