sr-npm 1.7.101 → 1.7.103
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const COLLECTIONS = {
|
|
2
|
-
AMOUNT_OF_JOBS_PER_DEPARTMENT: '
|
|
3
|
-
CITIES: '
|
|
4
|
-
JOBS: '
|
|
2
|
+
AMOUNT_OF_JOBS_PER_DEPARTMENT: 'AmountOfJobsPerDepartment',
|
|
3
|
+
CITIES: 'cities',
|
|
4
|
+
JOBS: 'Jobs',
|
|
5
5
|
API_KEY: 'ApiKey',
|
|
6
6
|
}
|
|
7
7
|
const JOBS_COLLECTION_FIELDS = {
|
|
@@ -2,8 +2,8 @@ const { fetch } = require('wix-fetch');
|
|
|
2
2
|
const { items: wixData } = require('@wix/data');
|
|
3
3
|
const { COLLECTIONS } = require('./collectionConsts');
|
|
4
4
|
async function makeSmartRecruitersRequest(path,token) {
|
|
5
|
-
|
|
6
|
-
const baseUrl = 'https://bayank2.wixstudio.com/my-site-3//_functions'; // TEST
|
|
5
|
+
const baseUrl = 'https://api.smartrecruiters.com'; // PROD
|
|
6
|
+
//const baseUrl = 'https://bayank2.wixstudio.com/my-site-3//_functions'; // TEST
|
|
7
7
|
const fullUrl = `${baseUrl}${path}`;
|
|
8
8
|
|
|
9
9
|
//console.log(`Making request to: ${fullUrl}`);
|