sr-npm 1.0.15 → 1.0.17
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.
|
@@ -43,7 +43,7 @@ async function fetchPositionsFromSRAPI() {
|
|
|
43
43
|
page++;
|
|
44
44
|
|
|
45
45
|
// Build the API path - first request has no page parameter, subsequent use nextPageId
|
|
46
|
-
const apiPath = `/v1/companies/${companyId}/postings?offset=${offset}&destination
|
|
46
|
+
const apiPath = `/v1/companies/${companyId}/postings?offset=${offset}&destination=PUBLIC`;
|
|
47
47
|
|
|
48
48
|
console.log(`Fetching page ${page} with path: ${apiPath}`);
|
|
49
49
|
const response = await makeSmartRecruitersRequest(apiPath);
|
|
@@ -109,6 +109,7 @@ async function getCompanyIdFromCMS() {
|
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
async function getTemplateTypeFromCMS() {
|
|
112
|
+
console.log("COLLECTIONS.TEMPLATE_TYPE is ",COLLECTIONS.TEMPLATE_TYPE)
|
|
112
113
|
const result = await wixData.query(COLLECTIONS.TEMPLATE_TYPE).limit(1).find();
|
|
113
114
|
if (result.items.length > 0) {
|
|
114
115
|
return result.items[0].templateType;
|