sr-npm 1.7.57 → 1.7.59

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.
@@ -35,7 +35,7 @@ async function fetchPositionsFromSRAPI() {
35
35
  let allPositions = [];
36
36
  let totalFound = 0;
37
37
  let nextPageId = null; // Start with no page ID for the first request
38
- let pageCount = 0;
38
+ let page = 0;
39
39
  const MAX_PAGES = 30 // Safety limit to prevent infinite loops
40
40
  const token = await getSmartTokenFromCMS();
41
41
 
@@ -51,7 +51,7 @@ async function fetchPositionsFromSRAPI() {
51
51
  apiPath += `&nextPageId=${nextPageId}`;
52
52
  }
53
53
 
54
- console.log(`Fetching page ${pageCount} with path: ${apiPath}`);
54
+ console.log(`Fetching page ${page} with path: ${apiPath}`);
55
55
  const response = await makeSmartRecruitersRequest(apiPath,token);
56
56
 
57
57
  // Add positions from this page to our collection
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.57",
3
+ "version": "1.7.59",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {