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