sr-npm 1.7.1232 → 1.7.1233
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 +6 -2
- package/package.json +1 -1
- package/pages/positionPage.js +1 -2
package/backend/data.js
CHANGED
|
@@ -463,14 +463,18 @@ function fetchJobLocation(jobDetails) {
|
|
|
463
463
|
|
|
464
464
|
async function createCollections() {
|
|
465
465
|
console.log("Creating collections");
|
|
466
|
+
if(siteconfig===undefined) {
|
|
467
|
+
await getSiteConfig();
|
|
468
|
+
}
|
|
469
|
+
|
|
466
470
|
await Promise.all(
|
|
467
471
|
[createCollectionIfMissing(COLLECTIONS.JOBS, COLLECTIONS_FIELDS.JOBS,{ insert: 'ADMIN', update: 'ADMIN', remove: 'ADMIN', read: 'ANYONE' }),
|
|
468
472
|
createCollectionIfMissing(COLLECTIONS.CITIES, COLLECTIONS_FIELDS.CITIES),
|
|
469
473
|
createCollectionIfMissing(COLLECTIONS.AMOUNT_OF_JOBS_PER_DEPARTMENT, COLLECTIONS_FIELDS.AMOUNT_OF_JOBS_PER_DEPARTMENT),
|
|
470
474
|
createCollectionIfMissing(COLLECTIONS.SECRET_MANAGER_MIRROR, COLLECTIONS_FIELDS.SECRET_MANAGER_MIRROR),
|
|
471
475
|
createCollectionIfMissing(COLLECTIONS.BRANDS, COLLECTIONS_FIELDS.BRANDS),
|
|
472
|
-
createCollectionIfMissing(COLLECTIONS.CUSTOM_VALUES, COLLECTIONS_FIELDS.CUSTOM_VALUES),
|
|
473
|
-
createCollectionIfMissing(COLLECTIONS.CUSTOM_FIELDS, COLLECTIONS_FIELDS.CUSTOM_FIELDS)
|
|
476
|
+
siteconfig.customFields==="true" ? createCollectionIfMissing(COLLECTIONS.CUSTOM_VALUES, COLLECTIONS_FIELDS.CUSTOM_VALUES) : null,
|
|
477
|
+
siteconfig.customFields==="true" ? createCollectionIfMissing(COLLECTIONS.CUSTOM_FIELDS, COLLECTIONS_FIELDS.CUSTOM_FIELDS) : null
|
|
474
478
|
]);
|
|
475
479
|
console.log("finished creating Collections");
|
|
476
480
|
}
|
package/package.json
CHANGED
package/pages/positionPage.js
CHANGED
|
@@ -38,8 +38,7 @@ async function getCategoryValue(customValues) {
|
|
|
38
38
|
handleReferFriendButton(_$w,item);
|
|
39
39
|
handleApplyButton(_$w,item);
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
console.log("item.jobDescription.companyDescription is commented: ")
|
|
41
|
+
_$w('#companyDescriptionText').content = item.jobDescription.companyDescription;
|
|
43
42
|
_$w('#responsibilitiesText').content = item.jobDescription.jobDescription;
|
|
44
43
|
_$w('#qualificationsText').content = item.jobDescription.qualifications;
|
|
45
44
|
_$w('#relatedJobsTitleText').text = `More ${item.department} Positions`;
|