sr-npm 1.7.660 → 1.7.661

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.660",
3
+ "version": "1.7.661",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -249,6 +249,9 @@ async function loadJobs(_$w) {
249
249
  for (const [, values] of selectedByField.entries()) {
250
250
  for(job of finalFilteredJobs) {
251
251
  if(filterByField===JOBS_COLLECTION_FIELDS.CITY_TEXT){
252
+ console.log("job[filterByField]: ",job[filterByField])
253
+ console.log("values: ",values)
254
+ console.log("values.includes(job[filterByField]): ",values.includes(job[filterByField]))
252
255
  //if it is location then we check if selecred values (which is an array) have job city text
253
256
  if(values.includes(job[filterByField])) {
254
257
  if(!addedJobsIds.includes(job._id)) {
@@ -258,6 +261,9 @@ async function loadJobs(_$w) {
258
261
  }
259
262
  }
260
263
  else{
264
+ console.log("job[filterByField]: ",job[filterByField])
265
+ console.log("values: ",values)
266
+ console.log("job[filterByField].some(value=>values.includes(value._id)): ",job[filterByField].some(value=>values.includes(value._id)))
261
267
  //if it is not location then we check if selecred values (which is an array) have one of the job values (whcih is also an array)
262
268
  if(job[filterByField].some(value=>values.includes(value._id))) {
263
269
  if(!addedJobsIds.includes(job._id)) {