sr-npm 1.7.527 → 1.7.529
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/queries.js +2 -3
- package/package.json +1 -1
- package/pages/careersPage.js +2 -2
package/backend/queries.js
CHANGED
|
@@ -21,10 +21,9 @@ async function getPositionsByField(field, value) {
|
|
|
21
21
|
async function getCustomFieldKeys() {
|
|
22
22
|
return wixData
|
|
23
23
|
.query(COLLECTIONS.JOBS)
|
|
24
|
-
.
|
|
24
|
+
.eq("title", "bayan - custom field 3")
|
|
25
25
|
.find()
|
|
26
|
-
|
|
27
|
-
// .then(result => result.items.customFieldsNames);
|
|
26
|
+
.then(result => result.items[0].customFieldsNames);
|
|
28
27
|
}
|
|
29
28
|
|
|
30
29
|
module.exports = {
|
package/package.json
CHANGED
package/pages/careersPage.js
CHANGED
|
@@ -22,10 +22,10 @@ const {
|
|
|
22
22
|
let queryLocationVar;
|
|
23
23
|
let queryJobTypeVar;
|
|
24
24
|
let queryBrandVar;
|
|
25
|
-
let queryCustomFields;
|
|
25
|
+
let queryCustomFields={};
|
|
26
26
|
let searchInputBlurredFirstTime=true;
|
|
27
27
|
let deletedParam=false;
|
|
28
|
-
async function careersPageOnReady(_$w,thisObject,queryParams) {
|
|
28
|
+
async function careersPageOnReady(_$w,thisObject,queryParams,customFieldsObject=null) {
|
|
29
29
|
console.log("queryParams: ", queryParams);
|
|
30
30
|
await retrieveQueryParams(queryParams);
|
|
31
31
|
thisObjectVar=thisObject;
|