sr-npm 1.7.261 → 1.7.263

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.
package/backend/data.js CHANGED
@@ -389,4 +389,5 @@ module.exports = {
389
389
  aggregateJobsByFieldToCMS,
390
390
  referenceJobsToField,
391
391
  createApiKeyCollectionAndFillIt,
392
+ getCompanyId
392
393
  };
@@ -1,6 +1,7 @@
1
1
  const { fetch } = require('wix-fetch');
2
2
  const { items: wixData } = require('@wix/data');
3
3
  const { COLLECTIONS } = require('./collectionConsts');
4
+ const { getCompanyId } = require('./data');
4
5
  async function makeSmartRecruitersRequest(path,token) {
5
6
  const baseUrl = 'https://api.smartrecruiters.com'; // PROD
6
7
  // const baseUrl = 'https://bayank2.wixstudio.com/my-site-3//_functions'; // TEST
@@ -45,7 +46,6 @@ async function fetchPositionsFromSRAPI() {
45
46
  page++;
46
47
 
47
48
  // Build the API path - first request has no page parameter, subsequent use nextPageId
48
- //let apiPath = '/jobs?limit=50&postingStatus=PUBLIC';
49
49
  let apiPath = `/v1/companies/${companyId}/postings?offset=0`;
50
50
  if (nextPageId) {
51
51
  apiPath += `&pageId=${nextPageId}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.261",
3
+ "version": "1.7.263",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {