sr-npm 1.7.416 → 1.7.418
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.
|
@@ -16,7 +16,6 @@ async function makeSmartRecruitersRequest(path,templateType) {
|
|
|
16
16
|
//here is the only place where we check templateType
|
|
17
17
|
if (templateType === 'INTERNAL') {
|
|
18
18
|
const smartToken = await getSmartTokenFromCMS();
|
|
19
|
-
console.log("smartToken is ",smartToken);
|
|
20
19
|
headers['x-smarttoken'] = smartToken;
|
|
21
20
|
}
|
|
22
21
|
const response = await fetch(fullUrl, {
|
|
@@ -102,8 +101,8 @@ async function fetchPositionsFromSRAPI() {
|
|
|
102
101
|
}
|
|
103
102
|
|
|
104
103
|
async function fetchJobDescription(jobId) {
|
|
105
|
-
const {companyId} = await getApiKeys();
|
|
106
|
-
return await makeSmartRecruitersRequest(`/v1/companies/${companyId}/postings/${jobId}
|
|
104
|
+
const {companyId,templateType} = await getApiKeys();
|
|
105
|
+
return await makeSmartRecruitersRequest(`/v1/companies/${companyId}/postings/${jobId}`,templateType);
|
|
107
106
|
}
|
|
108
107
|
|
|
109
108
|
async function getCompanyIdFromCMS() {
|