sr-npm 1.7.44 → 1.7.45

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 -3
  2. package/package.json +1 -1
package/backend/data.js CHANGED
@@ -66,17 +66,17 @@ async function saveJobsDescriptionsAndLocationToCMS() {
66
66
  let pageNumber = 1;
67
67
 
68
68
  console.log(
69
- `Total jobs in database without descriptions: ${jobsWithNoDescriptions.totalCount}`
69
+ `Total jobs in database without descriptions: ${jobsWithNoDescriptions.result.length}`
70
70
  );
71
71
 
72
- if (jobsWithNoDescriptions.totalCount === 0) {
72
+ if (jobsWithNoDescriptions.result.length === 0) {
73
73
  console.log('No jobs found in database');
74
74
  return { success: true, message: 'No jobs found' };
75
75
  }
76
76
 
77
77
 
78
78
  const API_CHUNK_SIZE = 80;
79
- const pageChunks = Math.ceil(currentPageJobs.length / API_CHUNK_SIZE);
79
+ const pageChunks = Math.ceil(jobsWithNoDescriptions.result.length / API_CHUNK_SIZE);
80
80
 
81
81
  await chunkedBulkOperation({
82
82
  items: currentPageJobs,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.44",
3
+ "version": "1.7.45",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {