sr-npm 1.7.415 → 1.7.417

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,6 +16,7 @@ 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);
19
20
  headers['x-smarttoken'] = smartToken;
20
21
  }
21
22
  const response = await fetch(fullUrl, {
@@ -101,8 +102,8 @@ async function fetchPositionsFromSRAPI() {
101
102
  }
102
103
 
103
104
  async function fetchJobDescription(jobId) {
104
- const {companyId} = await getApiKeys();
105
- return await makeSmartRecruitersRequest(`/v1/companies/${companyId}/postings/${jobId}`);
105
+ const {companyId,templateType} = await getApiKeys();
106
+ return await makeSmartRecruitersRequest(`/v1/companies/${companyId}/postings/${jobId}`,templateType);
106
107
  }
107
108
 
108
109
  async function getCompanyIdFromCMS() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.415",
3
+ "version": "1.7.417",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {