sr-npm 1.7.816 → 1.7.817

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.816",
3
+ "version": "1.7.817",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -51,9 +51,7 @@ async function getCategoryValueId(customFields) {
51
51
  }
52
52
  if(_$w('#relatedJobsRepNoDepartment')) // when there is no department, we filter based on category
53
53
  {
54
- console.log("item inside getRelatedJobs: ", item);
55
54
  const relatedJobs=await getRelatedJobs(categoryValueId,item._id);
56
- console.log("relatedJobs@@$@$@$$%%%%%%%%%%#$@: ", relatedJobs);
57
55
  _$w('#relatedJobsRepNoDepartment').onItemReady(($item, itemData) => {
58
56
  $item('#relatedJobTitle').text = itemData.title;
59
57
  $item('#relatedJobLocation').text = itemData.location.fullLocation;
@@ -61,7 +59,7 @@ async function getCategoryValueId(customFields) {
61
59
  await location.to(itemData["link-jobs-title"]);
62
60
  });
63
61
  });
64
- _$w('#relatedJobsRepNoDepartment').data = relatedJobs.slice(0,5);
62
+ _$w('#relatedJobsRepNoDepartment').data = relatedJobs
65
63
 
66
64
  }
67
65
  });
@@ -93,7 +91,6 @@ async function getCategoryValueId(customFields) {
93
91
 
94
92
  async function getRelatedJobs(categoryValueId,itemId) {
95
93
  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]).ne("_id",itemId).find();
96
- console.log("relatedJobs@@$@$@$#$@: ", relatedJobs);
97
94
  return relatedJobs.items;
98
95
  }
99
96