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 CHANGED
@@ -120,7 +120,7 @@ async function saveJobsDataToCMS() {
120
120
  return basicJob;
121
121
  });
122
122
  if(siteconfig===undefined) {
123
- siteconfig = await getSiteConfig();
123
+ await getSiteConfig();
124
124
  }
125
125
  console.log("siteconfig is @#!#!@!@$##!@: ", siteconfig);
126
126
  if (siteconfig.customFields==="true") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.567",
3
+ "version": "1.7.568",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -27,9 +27,10 @@ const {
27
27
 
28
28
  async function careersPageOnReady(_$w,thisObject,queryParams) {
29
29
  if(siteconfig===undefined) {
30
- siteconfig = await wixData.query(COLLECTIONS.SITE_CONFIGS).find();
31
- siteconfig = siteconfig.items[0];
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;