sr-npm 1.7.809 → 1.7.811

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.809",
3
+ "version": "1.7.811",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -54,7 +54,7 @@ async function getCategoryValueId(customFields) {
54
54
  console.log("i am here 2");
55
55
  });
56
56
 
57
- if(_$w('#relatedJobsDataset'))
57
+ if(_$w('#relatedJobsDataset') && _$w('#relatedJobsDataset').length>0)
58
58
  {
59
59
  console.log("relatedJobsDataset@@$@$@$#$@ is : ",_$w('#relatedJobsDataset'));
60
60
  _$w('#relatedJobsDataset').onReady(() => {
@@ -96,7 +96,9 @@ async function getCategoryValueId(customFields) {
96
96
  }
97
97
 
98
98
  async function getRelatedJobs() {
99
- 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();
99
+ console.log("categoryValueId inside getRelatedJobs ", categoryValueId);
100
+ console.log("type of categoryValueId: ", typeof categoryValueId);
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();
100
102
  console.log("relatedJobs@@$@$@$#$@: ", relatedJobs);
101
103
  return relatedJobs.items;
102
104
  }