sr-npm 1.7.409 → 1.7.410
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.
|
@@ -34,7 +34,7 @@ async function fetchPositionsFromSRAPI() {
|
|
|
34
34
|
let totalFound = 0;
|
|
35
35
|
let page = 0;
|
|
36
36
|
const MAX_PAGES = 30 // Safety limit to prevent infinite loops
|
|
37
|
-
const {companyId,templateType,smartToken} = await
|
|
37
|
+
const {companyId,templateType,smartToken} = await getApiKeys();
|
|
38
38
|
console.log('Starting to fetch all positions with pagination...');
|
|
39
39
|
let offset=0;
|
|
40
40
|
|
|
@@ -95,7 +95,7 @@ async function fetchPositionsFromSRAPI() {
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
async function fetchJobDescription(jobId) {
|
|
98
|
-
const {companyId,smartToken} = await
|
|
98
|
+
const {companyId,smartToken} = await getApiKeys();
|
|
99
99
|
return await makeSmartRecruitersRequest(`/v1/companies/${companyId}/postings/${jobId}`,smartToken);
|
|
100
100
|
}
|
|
101
101
|
|