sr-npm 1.7.812 → 1.7.813

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.812",
3
+ "version": "1.7.813",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -56,7 +56,7 @@ async function getCategoryValueId(customFields) {
56
56
  if(_$w('#relatedJobsRepNoDepartment')) // when there is no department, we filter based on category
57
57
  {
58
58
  console.log("i am here 3");
59
- const relatedJobs=await getRelatedJobs();
59
+ const relatedJobs=await getRelatedJobs(categoryValueId);
60
60
  console.log("relatedJobs@@$@$@$$%%%%%%%%%%#$@: ", relatedJobs);
61
61
  _$w('#relatedJobsRepNoDepartment').onItemReady(($item, itemData) => {
62
62
  $item('#relatedJobTitle').text = itemData.title;
@@ -95,7 +95,7 @@ async function getCategoryValueId(customFields) {
95
95
  _$w('#applyButton').link=url; //so it can be clicked
96
96
  }
97
97
 
98
- async function getRelatedJobs() {
98
+ async function getRelatedJobs(categoryValueId) {
99
99
  console.log("categoryValueId inside getRelatedJobs ", categoryValueId);
100
100
  console.log("type of categoryValueId: ", typeof categoryValueId);
101
101
  const relatedJobs=await wixData.query(COLLECTIONS.JOBS).include(JOBS_COLLECTION_FIELDS.MULTI_REF_JOBS_CUSTOM_VALUES).hasSome(JOBS_COLLECTION_FIELDS.MULTI_REF_JOBS_CUSTOM_VALUES,[categoryValueId]).find();