sr-npm 1.7.525 → 1.7.527

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.
@@ -18,16 +18,17 @@ async function getPositionsByField(field, value) {
18
18
  .then(result => result.items);
19
19
  }
20
20
 
21
- async function getCutomFieldKeys() {
21
+ async function getCustomFieldKeys() {
22
22
  return wixData
23
23
  .query(COLLECTIONS.JOBS)
24
24
  .limit(1)
25
25
  .find()
26
- .then(result => result.items.customFieldsNames);
26
+
27
+ // .then(result => result.items.customFieldsNames);
27
28
  }
28
29
 
29
30
  module.exports = {
30
31
  getAllPositions,
31
32
  getPositionsByField,
32
- getCutomFieldKeys
33
+ getCustomFieldKeys
33
34
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.525",
3
+ "version": "1.7.527",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,4 +1,4 @@
1
- const { getAllPositions,getCutomFieldKeys } = require('../backend/queries');
1
+ const { getAllPositions,getCustomFieldKeys } = require('../backend/queries');
2
2
  const {wixData} = require('wix-data');
3
3
  const { window } = require('@wix/site-window');
4
4
  const { query,queryParams,onChange} = require("wix-location-frontend");
@@ -47,8 +47,8 @@ queryDepartmentVar=department;
47
47
  queryLocationVar=location;
48
48
  queryJobTypeVar=jobType;
49
49
  queryBrandVar=brand;
50
- const customFieldKeys=await getCutomFieldKeys()
51
- console.log(customFieldKeys)
50
+ const customFieldKeys=await getCustomFieldKeys()
51
+ console.log("customFieldKeys: ", customFieldKeys)
52
52
  for(const customFieldKey of customFieldKeys)
53
53
  {
54
54
  queryCustomFields[customFieldKey]=queryParams[customFieldKey]