sr-npm 1.7.567 → 1.7.568
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 +1 -1
- package/package.json +1 -1
- package/pages/careersPage.js +3 -2
package/backend/data.js
CHANGED
|
@@ -120,7 +120,7 @@ async function saveJobsDataToCMS() {
|
|
|
120
120
|
return basicJob;
|
|
121
121
|
});
|
|
122
122
|
if(siteconfig===undefined) {
|
|
123
|
-
|
|
123
|
+
await getSiteConfig();
|
|
124
124
|
}
|
|
125
125
|
console.log("siteconfig is @#!#!@!@$##!@: ", siteconfig);
|
|
126
126
|
if (siteconfig.customFields==="true") {
|
package/package.json
CHANGED
package/pages/careersPage.js
CHANGED
|
@@ -27,9 +27,10 @@ const {
|
|
|
27
27
|
|
|
28
28
|
async function careersPageOnReady(_$w,thisObject,queryParams) {
|
|
29
29
|
if(siteconfig===undefined) {
|
|
30
|
-
|
|
31
|
-
siteconfig =
|
|
30
|
+
const queryResult = await wixData.query(COLLECTIONS.SITE_CONFIGS).find();
|
|
31
|
+
siteconfig = queryResult.items[0];
|
|
32
32
|
}
|
|
33
|
+
console.log("siteconfig: ", siteconfig);
|
|
33
34
|
console.log("queryParams: ", queryParams);
|
|
34
35
|
const { page, keyWord, department, location,jobType,brand } = queryParams;
|
|
35
36
|
queryPageVar=page;
|