sr-npm 1.7.664 → 1.7.666
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/data.js
CHANGED
|
@@ -11,7 +11,7 @@ const { retrieveSecretVal, getTokenFromCMS } = require('./secretsData');
|
|
|
11
11
|
let customValuesToJobs = {}
|
|
12
12
|
let locationToJobs = {}
|
|
13
13
|
let siteconfig;
|
|
14
|
-
const EXCLUDED_CUSTOM_FIELDS = new Set(["Department","
|
|
14
|
+
const EXCLUDED_CUSTOM_FIELDS = new Set(["Department","Country"]);
|
|
15
15
|
|
|
16
16
|
function getBrand(customField) {
|
|
17
17
|
return customField.find(field => field.fieldLabel === 'Brands')?.valueLabel;
|
package/package.json
CHANGED
|
@@ -262,7 +262,7 @@ async function loadJobs(_$w) {
|
|
|
262
262
|
}
|
|
263
263
|
else{
|
|
264
264
|
//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)
|
|
265
|
-
if(job[
|
|
265
|
+
if(job[JOBS_COLLECTION_FIELDS.MULTI_REF_JOBS_CUSTOM_VALUES].some(value=>values.includes(value._id))) {
|
|
266
266
|
if(!addedJobsIds.includes(job._id)) {
|
|
267
267
|
tempFilteredJobs.push(job);
|
|
268
268
|
addedJobsIds.push(job._id);
|